# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=72

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 73

---

## [Theme component authoring in the about.json file](https://meta.discourse.org/t/theme-component-authoring-in-the-about-json-file/202925)

<div class="topic-metadata">

**Author:** [@manuel](https://meta.discourse.org/u/manuel)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 12:40pm UTC](https://meta.discourse.org/t/theme-component-authoring-in-the-about-json-file/202925 "2021-06-29T12:40:28Z")

</div>

I’ve been modifying a few components now and I tend to ponder how to handle the authors: field in about.json. The value will show up in the component’s settings, like this: So what to do when I modify an existing comp…

---

## [Plugin stylesheets are not included in qunit tests](https://meta.discourse.org/t/plugin-stylesheets-are-not-included-in-qunit-tests/202894)

<div class="topic-metadata">

**Author:** [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)\
**Replies:** 0\
**Last updated:** [September 7, 2021, 9:22pm UTC](https://meta.discourse.org/t/plugin-stylesheets-are-not-included-in-qunit-tests/202894 "2021-09-07T21:22:28Z")

</div>

I noticed today, while building qunit tests for a plugin, that the stylesheet(s) for the plugin are not available to the qunit testing suite. It was a long and winding road to figure out that the reason my tests weren’t…

---

## [Validate User Session on another custom site](https://meta.discourse.org/t/validate-user-session-on-another-custom-site/202713)

<div class="topic-metadata">

**Author:** [@Rajeev](https://meta.discourse.org/u/Rajeev)\
**Replies:** 6\
**Last updated:** [September 6, 2021, 2:08pm UTC](https://meta.discourse.org/t/validate-user-session-on-another-custom-site/202713 "2021-09-06T14:08:13Z")

</div>

Hi Community Folks I want to know that Is there any way by which I can validate the user session. A scenario is that I have custom another site running on angular whenever user redirects from discourse to angular custom…

---

## [How to get a feed from a password protected Discourse?](https://meta.discourse.org/t/how-to-get-a-feed-from-a-password-protected-discourse/29602)

<div class="topic-metadata">

**Author:** [@strategeek](https://meta.discourse.org/u/strategeek)\
**Replies:** 14\
**Last updated:** [September 3, 2021, 4:08am UTC](https://meta.discourse.org/t/how-to-get-a-feed-from-a-password-protected-discourse/29602 "2021-09-03T04:08:35Z")

</div>

Hello. I need to display password protected Discourse feed on the external site. How to do that? Other sites suggest using this structure http://\[username\]:\[password\]@\[domain\]/\[path\] But for Discourse it doesn’t work. …

---

## [Can non-admin user issue their own API key?](https://meta.discourse.org/t/can-non-admin-user-issue-their-own-api-key/173226)

<div class="topic-metadata">

**Author:** [@KengoTODA](https://meta.discourse.org/u/KengoTODA)\
**Replies:** 13\
**Last updated:** [September 2, 2021, 4:27pm UTC](https://meta.discourse.org/t/can-non-admin-user-issue-their-own-api-key/173226 "2021-09-02T16:27:21Z")

</div>

Hello :waving\_hand:, I’m making a GitHub action posting to the Discourse forum. I found the post API, however, the document says Discourse users need to create an API Key from the admin panel, even though non-admin use…

---

## [Lookup user id from username or email address](https://meta.discourse.org/t/lookup-user-id-from-username-or-email-address/198638)

<div class="topic-metadata">

**Author:** [@uckelman](https://meta.discourse.org/u/uckelman)\
**Replies:** 4\
**Last updated:** [September 1, 2021, 12:34am UTC](https://meta.discourse.org/t/lookup-user-id-from-username-or-email-address/198638 "2021-09-01T00:34:12Z")

</div>

I have the archive of our old news feed as JSON, which I want to use to populate the News category of our new forum; all the posts in the feed were made by users who already have forum accounts. The most straightforward …

---

## [User Mention Notifications](https://meta.discourse.org/t/user-mention-notifications/202202)

<div class="topic-metadata">

**Author:** [@knycornelius2](https://meta.discourse.org/u/knycornelius2)\
**Replies:** 0\
**Last updated:** [August 31, 2021, 8:08am UTC](https://meta.discourse.org/t/user-mention-notifications/202202 "2021-08-31T08:08:12Z")

</div>

Hi everyone, I want to ask some questions related to User Mention Notifications. Is there a way to tell the difference between mentions in posts and in PM? How to check it in the notifications endpoint (notifications.j…

---

## [$primary-medium SCSS variable problems](https://meta.discourse.org/t/primary-medium-scss-variable-problems/122390)

<div class="topic-metadata">

**Author:** [@Phillip\_Rooney](https://meta.discourse.org/u/Phillip_Rooney)\
**Replies:** 3\
**Last updated:** [August 29, 2021, 6:46pm UTC](https://meta.discourse.org/t/primary-medium-scss-variable-problems/122390 "2021-08-29T18:46:41Z")

</div>

I have a default primary colour: #4d238c. The issue is: the color for $primary-medium being generated (#a179de) doesn’t pass accessibility guidelines, so i need to make it darker. It seems laborious to change it in all …

---

## [Rolling back a plugin migration](https://meta.discourse.org/t/rolling-back-a-plugin-migration/201712)

<div class="topic-metadata">

**Author:** [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)\
**Replies:** 2\
**Last updated:** [August 27, 2021, 9:14pm UTC](https://meta.discourse.org/t/rolling-back-a-plugin-migration/201712 "2021-08-27T21:14:57Z")

</div>

I’m working on a plugin (my first attempt at doing so). The plugin requires extending the database with a new migration. I was able to run this initial migration using the bin/rake db:migrate command. I noticed some pr…

---

## [Replace the search bar with a third-party one](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918)

<div class="topic-metadata">

**Author:** [@taraness](https://meta.discourse.org/u/taraness)\
**Replies:** 3\
**Last updated:** [August 27, 2021, 3:48pm UTC](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918 "2021-08-27T15:48:51Z")

</div>

Hello there, Thanks for clicking on this. I am quite new to Discourse, and I’m looking for some guidance. What is the best way to either: Replace the Discourse search bar with a third-party one If the above isn’t poss…

---

## [How can I call third party apis in discourse](https://meta.discourse.org/t/how-can-i-call-third-party-apis-in-discourse/201782)

<div class="topic-metadata">

**Author:** [@Rajeev](https://meta.discourse.org/u/Rajeev)\
**Replies:** 4\
**Last updated:** [August 26, 2021, 11:45am UTC](https://meta.discourse.org/t/how-can-i-call-third-party-apis-in-discourse/201782 "2021-08-26T11:45:00Z")

</div>

Hi, I am wondering that is there any way by which we can call third-party custom API created in node.js in discourse? feedback appreciated Thanks

---

## [Issue in post creation API](https://meta.discourse.org/t/issue-in-post-creation-api/201667)

<div class="topic-metadata">

**Author:** [@nishantwrp](https://meta.discourse.org/u/nishantwrp)\
**Replies:** 1\
**Last updated:** [August 26, 2021, 5:15am UTC](https://meta.discourse.org/t/issue-in-post-creation-api/201667 "2021-08-26T05:15:30Z")

</div>

I am working on this forum which is powered by Discourse. After the moderators provided me with an api key and username, I found a bug in the POST /posts.json API endpoint. As mentioned here this endpoint accepts a topi…

---

## [Failing spec: sign\_in(Fabricate(:user))](https://meta.discourse.org/t/failing-spec-sign-in-fabricate-user/146158)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 11\
**Last updated:** [August 25, 2021, 10:35am UTC](https://meta.discourse.org/t/failing-spec-sign-in-fabricate-user/146158 "2021-08-25T10:35:26Z")

</div>

I’ve got a spec that started failing a few days ago. It looks like it’s due to something about timzone? I don’t see a way that it’s my plugin’s fault, but maybe I’m missing something? require 'rails\_helper' describe To…

---

## [What's a Post? (Discourse API question)](https://meta.discourse.org/t/whats-a-post-discourse-api-question/201497)

<div class="topic-metadata">

**Author:** [@jcasman](https://meta.discourse.org/u/jcasman)\
**Replies:** 7\
**Last updated:** [August 24, 2021, 10:07pm UTC](https://meta.discourse.org/t/whats-a-post-discourse-api-question/201497 "2021-08-24T22:07:58Z")

</div>

I’m trying to accurately gauge and report activity from a forum that I am running using Discourse. I think I fundamentally don’t understand what a Post is. On the API, there’s Topics and Posts. For example, if I want to…

---

## [Timeouts of Redis Lock](https://meta.discourse.org/t/timeouts-of-redis-lock/201520)

<div class="topic-metadata">

**Author:** [@concerto](https://meta.discourse.org/u/concerto)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 12:20pm UTC](https://meta.discourse.org/t/timeouts-of-redis-lock/201520 "2021-08-24T12:20:32Z")

</div>

Discourse uses DistributedMutex, an implementation of Redis lock for various things. It looks that implementation of this Redis lock has timeouts, making it a “lease” instead of “lock”. There could be possible problems …

---

## [Nginx to server static files?](https://meta.discourse.org/t/nginx-to-server-static-files/201323)

<div class="topic-metadata">

**Author:** [@valsha](https://meta.discourse.org/u/valsha)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 2:45pm UTC](https://meta.discourse.org/t/nginx-to-server-static-files/201323 "2021-08-23T14:45:53Z")

</div>

Hi, Does it make sense to serve static files using nginx? Something like: location ~ ^/assets/(?\<asset\_path\>.+)$ { expires 1M; add\_header Cache-Control "max-age=2629746, public"; } location ~ ^/user\_av…

---

## [How to fire a JavaScript code in only one topic page?](https://meta.discourse.org/t/how-to-fire-a-javascript-code-in-only-one-topic-page/201272)

<div class="topic-metadata">

**Author:** [@gassim](https://meta.discourse.org/u/gassim)\
**Replies:** 1\
**Last updated:** [August 21, 2021, 4:32pm UTC](https://meta.discourse.org/t/how-to-fire-a-javascript-code-in-only-one-topic-page/201272 "2021-08-21T16:32:30Z")

</div>

Hey! I really hope you can help me with this, please! Is there a way for me to edit the theme head component so that when the users click on the topic “welcome” a JavaScript code will fire but then as soon as they leave…

---

## [API / anonymize or delete](https://meta.discourse.org/t/api-anonymize-or-delete/158704)

<div class="topic-metadata">

**Author:** [@aahoughton](https://meta.discourse.org/u/aahoughton)\
**Replies:** 8\
**Last updated:** [August 19, 2021, 9:17pm UTC](https://meta.discourse.org/t/api-anonymize-or-delete/158704 "2021-08-19T21:17:28Z")

</div>

'lo. We’re using hosted discourse with OAuth. We suddenly realized that when we process deletions, we’re neglecting to delete from our discourse instance. I’d like to be able to anonymize an account, OR delete an acco…

---

## [Add tag via Discourse API Failed](https://meta.discourse.org/t/add-tag-via-discourse-api-failed/200536)

<div class="topic-metadata">

**Author:** [@littleviolette](https://meta.discourse.org/u/littleviolette)\
**Replies:** 1\
**Last updated:** [August 19, 2021, 8:50pm UTC](https://meta.discourse.org/t/add-tag-via-discourse-api-failed/200536 "2021-08-19T20:50:21Z")

</div>

Using Python 3.8 via Discourse API, I was able to retrieve a topic’s tags through the following code: topic\_url = forum\_url + f'/t/{topic\_id}.json' topic\_obj = requests.get(topic\_url, headers=headers).json() topic\_tags …

---

## [No route matches error](https://meta.discourse.org/t/no-route-matches-error/200852)

<div class="topic-metadata">

**Author:** [@custominstall](https://meta.discourse.org/u/custominstall)\
**Replies:** 4\
**Last updated:** [August 19, 2021, 12:53pm UTC](https://meta.discourse.org/t/no-route-matches-error/200852 "2021-08-19T12:53:45Z")

</div>

Hi, I am trying to create a custom route and keep getting this error - Routing Error ## No route matches \[GET\] "/test" This is on a local development setup I have added the follow to jsapp/app/routes/app-route-map.js …

---

## [How to fix 'Cannot read property '\_links' of undefined'](https://meta.discourse.org/t/how-to-fix-cannot-read-property-links-of-undefined/198673)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 12:35pm UTC](https://meta.discourse.org/t/how-to-fix-cannot-read-property-links-of-undefined/198673 "2021-07-30T12:35:29Z")

</div>

I’m trying to load my forum in a desktop app (electron) browser window. But the window comes up blank, and I keep getting the error: Cannot read property '\_links' of undefined. I find this same behavior when trying to lo…

---

## [Two-way mailman sync quandary](https://meta.discourse.org/t/two-way-mailman-sync-quandary/200613)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [August 16, 2021, 3:25pm UTC](https://meta.discourse.org/t/two-way-mailman-sync-quandary/200613 "2021-08-16T15:25:05Z")

</div>

I’m investing a two-way mailman sync. This community feels that getting rid of mailman is a non-starter, and they want Mailman users to continue to use only mailman yet still be able to interact with Discourse users part…

---

## [DiscourseMobile Repo issues?](https://meta.discourse.org/t/discoursemobile-repo-issues/200491)

<div class="topic-metadata">

**Author:** [@ShadowJonathan](https://meta.discourse.org/u/ShadowJonathan)\
**Replies:** 1\
**Last updated:** [August 15, 2021, 12:27pm UTC](https://meta.discourse.org/t/discoursemobile-repo-issues/200491 "2021-08-15T12:27:37Z")

</div>

Why can’t I file issues in the DiscouseMobile / Hub repo? I have a buggy and rough experience with the app, both on iOS and Android, and I’m kinda surprised that I’m not able to file those

---

## [Cannot call get with undefined key / Post.get is not a function](https://meta.discourse.org/t/cannot-call-get-with-undefined-key-post-get-is-not-a-function/45160)

<div class="topic-metadata">

**Author:** [@ivanrlio](https://meta.discourse.org/u/ivanrlio)\
**Replies:** 3\
**Last updated:** [August 14, 2021, 9:03pm UTC](https://meta.discourse.org/t/cannot-call-get-with-undefined-key-post-get-is-not-a-function/45160 "2021-08-14T21:03:32Z")

</div>

On my local machine I am using the latest version of Discourse. When I attempt to add a reply within a topic, I get the following error message: The post.get error occurs in this bit of code: I did a console.log…

---

## [Setting up RubyMine for debugging](https://meta.discourse.org/t/setting-up-rubymine-for-debugging/200342)

<div class="topic-metadata">

**Author:** [@someoneisatest](https://meta.discourse.org/u/someoneisatest)\
**Replies:** 4\
**Last updated:** [August 13, 2021, 9:36pm UTC](https://meta.discourse.org/t/setting-up-rubymine-for-debugging/200342 "2021-08-13T21:36:48Z")

</div>

Hi, I am fairly new to Discourse and Ruby/Ruby on Rails development. I’ve installed Discourse on my Mac (my main dev box). I followed instructions here, https://github.com/discourse/discourse/blob/main/docs/DEVELOPMENT-…

---

## [Bounced e-mails from Amazon SES/SNS not working](https://meta.discourse.org/t/bounced-e-mails-from-amazon-ses-sns-not-working/200209)

<div class="topic-metadata">

**Author:** [@wlandgraf](https://meta.discourse.org/u/wlandgraf)\
**Replies:** 2\
**Last updated:** [August 12, 2021, 4:07pm UTC](https://meta.discourse.org/t/bounced-e-mails-from-amazon-ses-sns-not-working/200209 "2021-08-12T16:07:34Z")

</div>

I was aware that Discourse offers an endpoint to handle SNS notifications from Amazon SES. The endpoint is /webhooks/aws, and here is where I got aware of it: https://meta.discourse.org/t/handling-bouncing-e-mails/45343…

---

## [How to know if message bus is still active](https://meta.discourse.org/t/how-to-know-if-message-bus-is-still-active/199997)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 11:45pm UTC](https://meta.discourse.org/t/how-to-know-if-message-bus-is-still-active/199997 "2021-08-11T23:45:07Z")

</div>

I’m working on this plugin that does Discourse rebuilds. It’s pretty darn close. The thing that’s bugging me now is that I have a status page that gives updates as things happen in the upgrade. But it takes a long time a…

---

## [Admin User API response changed](https://meta.discourse.org/t/admin-user-api-response-changed/200107)

<div class="topic-metadata">

**Author:** [@André\_Luiz\_Fonseca](https://meta.discourse.org/u/Andr%C3%A9_Luiz_Fonseca)\
**Replies:** 1\
**Last updated:** [August 11, 2021, 8:38pm UTC](https://meta.discourse.org/t/admin-user-api-response-changed/200107 "2021-08-11T20:38:07Z")

</div>

Hey, It seems that the “external\_email” inside “single\_sign\_on\_record” on GET “/admin/users/#{id}.json” are not being returned anymore. There is a way to force it return this info ? Thanks in advance, André Paes

---

## [What's the correct \`content-type\` when editing posts?](https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921)

<div class="topic-metadata">

**Author:** [@pedroleaoc](https://meta.discourse.org/u/pedroleaoc)\
**Replies:** 9\
**Last updated:** [August 10, 2021, 9:23pm UTC](https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921 "2021-08-10T21:23:56Z")

</div>

Hey folks, can I use application/json as Content-Type when updating a post via the API? The docs say I can, but I am starting to think I cannot.. I constantly get \["BAD CSRF"\] and I have no clue what that means. If I …

---

## [Node.JS library \[NPM\]](https://meta.discourse.org/t/node-js-library-npm/199845)

<div class="topic-metadata">

**Author:** [@Serakoi](https://meta.discourse.org/u/Serakoi)\
**Replies:** 0\
**Last updated:** [August 9, 2021, 5:35pm UTC](https://meta.discourse.org/t/node-js-library-npm/199845 "2021-08-09T17:35:24Z")

</div>

A simple yet useful way to make a discourse bot: https://www.npmjs.com/package/discourse-npm I’ve been looking around for a good NPM module for Discourse, so when i couldn’t find one i decided to make my own. If you w…

[Previous page](https://meta.discourse.org/c/dev/7.md?page=71)

[Next page](https://meta.discourse.org/c/dev/7.md?page=73)
