# Development

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

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

**Page:** 92

---

## [Disabling activation email requirement for invited users](https://meta.discourse.org/t/disabling-activation-email-requirement-for-invited-users/152633)

<div class="topic-metadata">

**Author:** [@tkrunning](https://meta.discourse.org/u/tkrunning)\
**Replies:** 4\
**Last updated:** [May 26, 2020, 5:00am UTC](https://meta.discourse.org/t/disabling-activation-email-requirement-for-invited-users/152633 "2020-05-26T05:00:38Z")

</div>

Hi guys, I have a use case that’s currently not that well supported: I need to disable the activation email for invited users—including users who are invited with a link. After I started the above topic this was imple…

---

## [Can I install an external application from github running on discourse](https://meta.discourse.org/t/can-i-install-an-external-application-from-github-running-on-discourse/152638)

<div class="topic-metadata">

**Author:** [@shaco](https://meta.discourse.org/u/shaco)\
**Replies:** 3\
**Last updated:** [May 25, 2020, 6:44pm UTC](https://meta.discourse.org/t/can-i-install-an-external-application-from-github-running-on-discourse/152638 "2020-05-25T18:44:15Z")

</div>

For example. I found a simple online counter. Can I install it on the server with yarn and then insert it into the code without any problem to make it work?

---

## [Retrieving top level replies on a topic](https://meta.discourse.org/t/retrieving-top-level-replies-on-a-topic/152061)

<div class="topic-metadata">

**Author:** [@ManishTripathy](https://meta.discourse.org/u/ManishTripathy)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 11:51am UTC](https://meta.discourse.org/t/retrieving-top-level-replies-on-a-topic/152061 "2020-05-25T11:51:36Z")

</div>

I have a requirement where we need to fetch all the first level replies made on a topic. Now when we create a new topic, it also creates a post. In order to create a first level reply on the topic, I make the below API c…

---

## [Missing X-Robots-Tag](https://meta.discourse.org/t/missing-x-robots-tag/152593)

<div class="topic-metadata">

**Author:** [@agmontpetit](https://meta.discourse.org/u/agmontpetit)\
**Replies:** 2\
**Last updated:** [May 25, 2020, 12:45pm UTC](https://meta.discourse.org/t/missing-x-robots-tag/152593 "2020-05-25T12:45:49Z")

</div>

We have DISCOURSE\_ALLOW\_INDEX\_IN\_ROBOTS\_TXT set to false, but the X-Robots-Tag header is not being sent in the response. Any ideas of what could be happening? Not sure if it could be related to this change.

---

## [Why is there client side validation before post save?](https://meta.discourse.org/t/why-is-there-client-side-validation-before-post-save/152407)

<div class="topic-metadata">

**Author:** [@spirobel](https://meta.discourse.org/u/spirobel)\
**Replies:** 0\
**Last updated:** [May 23, 2020, 4:04am UTC](https://meta.discourse.org/t/why-is-there-client-side-validation-before-post-save/152407 "2020-05-23T04:04:54Z")

</div>

Hello, I am wondering about this cantSubmitPost function. Why does it exist? I saw after patching in a return false and submitting an invalid request, an error modal will show up with the same errors that are shown as…

---

## [Slow queries in Discourse](https://meta.discourse.org/t/slow-queries-in-discourse/152494)

<div class="topic-metadata">

**Author:** [@wtune](https://meta.discourse.org/u/wtune)\
**Replies:** 9\
**Last updated:** [May 25, 2020, 7:29am UTC](https://meta.discourse.org/t/slow-queries-in-discourse/152494 "2020-05-25T07:29:10Z")

</div>

From Database Log we find some queries with unnecessary ORDER BY in subquery produced by user.rb#L379.One of them is as follows: SELECT "group\_users"."group\_id" FROM "group\_users" WHERE "group\_users"."group\_i…

---

## [Setting a Primary Group in Ruby](https://meta.discourse.org/t/setting-a-primary-group-in-ruby/120957)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 7:22am UTC](https://meta.discourse.org/t/setting-a-primary-group-in-ruby/120957 "2019-06-21T07:22:26Z")

</div>

I’m looking for some example ruby code to set a primary group for a user.

---

## [Is anyone using the Discourse API in a big way? Any tips?](https://meta.discourse.org/t/is-anyone-using-the-discourse-api-in-a-big-way-any-tips/152070)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 1\
**Last updated:** [May 23, 2020, 8:26pm UTC](https://meta.discourse.org/t/is-anyone-using-the-discourse-api-in-a-big-way-any-tips/152070 "2020-05-23T20:26:50Z")

</div>

Just wondering how people are using the API and whether you have any tips :smiley:

---

## [Why do pasted png get converted to jpg](https://meta.discourse.org/t/why-do-pasted-png-get-converted-to-jpg/152403)

<div class="topic-metadata">

**Author:** [@spirobel](https://meta.discourse.org/u/spirobel)\
**Replies:** 4\
**Last updated:** [May 23, 2020, 3:20am UTC](https://meta.discourse.org/t/why-do-pasted-png-get-converted-to-jpg/152403 "2020-05-23T03:20:36Z")

</div>

https://github.com/discourse/discourse/commit/a9c0df0b58c5495c574286084278b00a5d283cd3 Hi, I wanted to ask about this commit. Why do pasted PNGs get converted to JPG in any case? what breaks without this commit? why is…

---

## [Page load time optimizations](https://meta.discourse.org/t/page-load-time-optimizations/152283)

<div class="topic-metadata">

**Author:** [@D8vid](https://meta.discourse.org/u/D8vid)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 12:34am UTC](https://meta.discourse.org/t/page-load-time-optimizations/152283 "2020-05-22T00:34:29Z")

</div>

I checked out Discourse page load times with one of Google’s optimization tools “PageSpeed Insights” and it flagged several areas for optimization, particularly with page load times on mobile. If this could be useful to…

---

## [How to create custom reports](https://meta.discourse.org/t/how-to-create-custom-reports/152259)

<div class="topic-metadata">

**Author:** [@Conor\_McCarthy](https://meta.discourse.org/u/Conor_McCarthy)\
**Replies:** 1\
**Last updated:** [May 21, 2020, 7:05pm UTC](https://meta.discourse.org/t/how-to-create-custom-reports/152259 "2020-05-21T19:05:11Z")

</div>

Hi! How do I go about creating custom reports (similar to the reports in the Dashboard)? Thanks!

---

## [API call to have a user watch specific category(ies)?](https://meta.discourse.org/t/api-call-to-have-a-user-watch-specific-category-ies/67450)

<div class="topic-metadata">

**Author:** [@SwisherSweet](https://meta.discourse.org/u/SwisherSweet)\
**Replies:** 7\
**Last updated:** [May 21, 2020, 9:59am UTC](https://meta.discourse.org/t/api-call-to-have-a-user-watch-specific-category-ies/67450 "2020-05-21T09:59:07Z")

</div>

According to a reply by @Falco on my post, there’s a way to set users to watch categories using the API. I’ve spent hours searching the web and combing through the API documentation but I cannot find this call. Does any…

---

## [Receive the full description of a category in a theme](https://meta.discourse.org/t/receive-the-full-description-of-a-category-in-a-theme/152017)

<div class="topic-metadata">

**Author:** [@sbernhard](https://meta.discourse.org/u/sbernhard)\
**Replies:** 8\
**Last updated:** [May 20, 2020, 11:35pm UTC](https://meta.discourse.org/t/receive-the-full-description-of-a-category-in-a-theme/152017 "2020-05-20T23:35:56Z")

</div>

AFAIK, the description is stored (and maintained) in the first section of the first post in a description. I want to add links near “top”, “Latest” buttons in the category. As a theme can not be configured for each cate…

---

## [Data selector for themes](https://meta.discourse.org/t/data-selector-for-themes/152019)

<div class="topic-metadata">

**Author:** [@TheDarkWizard](https://meta.discourse.org/u/TheDarkWizard)\
**Replies:** 7\
**Last updated:** [May 20, 2020, 9:15am UTC](https://meta.discourse.org/t/data-selector-for-themes/152019 "2020-05-20T09:15:49Z")

</div>

Hi, I’d like to propose a data selector for themes to make it easier to make edits to full themes from a Component. I’m not sure how unique my situation is but I’m running an example where I have two instances of grace…

---

## [How to add a new page into the community? (Login isolated page)](https://meta.discourse.org/t/how-to-add-a-new-page-into-the-community-login-isolated-page/151218)

<div class="topic-metadata">

**Author:** [@duranmla](https://meta.discourse.org/u/duranmla)\
**Replies:** 4\
**Last updated:** [May 19, 2020, 11:44pm UTC](https://meta.discourse.org/t/how-to-add-a-new-page-into-the-community-login-isolated-page/151218 "2020-05-19T23:44:33Z")

</div>

Hello community, Today I’m writing in order to see if someone has more insights about how I can add a custom page to the community. I have seen already topics dealing with the login page customisation such as https://me…

---

## [Changing the header font for Custom Header Links](https://meta.discourse.org/t/changing-the-header-font-for-custom-header-links/277629)

<div class="topic-metadata">

**Author:** [@b481](https://meta.discourse.org/u/b481)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 9:35pm UTC](https://meta.discourse.org/t/changing-the-header-font-for-custom-header-links/277629 "2020-05-19T21:35:12Z")

</div>

Sorry if this is a bit of a basic question, but how would one go about changing the header font in this component? specifically hoping to use Convergence.

---

## [Making a theme translation for Custom Header Links](https://meta.discourse.org/t/making-a-theme-translation-for-custom-header-links/277628)

<div class="topic-metadata">

**Author:** [@aksoforever](https://meta.discourse.org/u/aksoforever)\
**Replies:** 5\
**Last updated:** [May 19, 2020, 1:51am UTC](https://meta.discourse.org/t/making-a-theme-translation-for-custom-header-links/277628 "2020-05-19T01:51:33Z")

</div>

Hi friend, I want to make a Theme Translations for this component I have read the Multiple languages support in Add settings to your Discourse theme and i find this theme GitHub - discourse/DiscoTOC: A Discourse theme …

---

## [Importing Deleted Posts](https://meta.discourse.org/t/importing-deleted-posts/151895)

<div class="topic-metadata">

**Author:** [@Ghan](https://meta.discourse.org/u/Ghan)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 1:44am UTC](https://meta.discourse.org/t/importing-deleted-posts/151895 "2020-05-19T01:44:34Z")

</div>

It seems that most importers exclude pulling over posts that have been deleted in the source software, but I’d like to preserve these. However, I want to make sure they are properly deleted in Discourse when imported. Se…

---

## [Need proofread of this advise about using theme preview](https://meta.discourse.org/t/need-proofread-of-this-advise-about-using-theme-preview/151757)

<div class="topic-metadata">

**Author:** [@EricGT](https://meta.discourse.org/u/EricGT)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 11:16am UTC](https://meta.discourse.org/t/need-proofread-of-this-advise-about-using-theme-preview/151757 "2020-05-18T11:16:38Z")

</div>

In helping another admin on our site I gave the following advise, but not sure it is 100% correct. Can those who known just proof read it and let me know if any part of it is wrong. This is in the context of using the t…

---

## [Adding HTTP Headers to Plugin in Development](https://meta.discourse.org/t/adding-http-headers-to-plugin-in-development/151789)

<div class="topic-metadata">

**Author:** [@DBHacker](https://meta.discourse.org/u/DBHacker)\
**Replies:** 3\
**Last updated:** [May 18, 2020, 6:02am UTC](https://meta.discourse.org/t/adding-http-headers-to-plugin-in-development/151789 "2020-05-18T06:02:24Z")

</div>

Situation: Developing plugin and using nginx as reverse proxy to rails:3000 and all works great but have trouble accessing API with the dreaded CORS errors, which we all know and “love” Access to XMLHttpRequest at 'bla…

---

## [Generating User Api Keys with REST API](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916)

<div class="topic-metadata">

**Author:** [@Umer\_Mirza](https://meta.discourse.org/u/Umer_Mirza)\
**Replies:** 20\
**Last updated:** [April 8, 2018, 11:49pm UTC](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916 "2018-04-08T23:49:47Z")

</div>

Hi I am trying to generate User api keys. I know I can do it from admin dashboard. But instead of there I want to generate by making REST calls. I am following this post User API keys specification I am getting error “…

---

## [Intermittent Parse Error on Plugin Rebuild](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727)

<div class="topic-metadata">

**Author:** [@Ghan](https://meta.discourse.org/u/Ghan)\
**Replies:** 4\
**Last updated:** [May 17, 2020, 6:09am UTC](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727 "2020-05-17T06:09:33Z")

</div>

In working on a bbcode plugin, we’re seeing an error appear related to one of the JS files we’ve added. This error only appears when updating the plugin or rebuilding the container, but does not occur every time. If I up…

---

## [How to check which method of registration user have used?](https://meta.discourse.org/t/how-to-check-which-method-of-registration-user-have-used/151574)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 4\
**Last updated:** [May 16, 2020, 12:32pm UTC](https://meta.discourse.org/t/how-to-check-which-method-of-registration-user-have-used/151574 "2020-05-16T12:32:32Z")

</div>

Since I detected a bug (users confirmed by a method other than email are deleted if they are not confirmed), please help me to find out how to check which method users registered? Need to know who created an account to …

---

## [Mobile development issue - Can't verify CSRF token authenticity](https://meta.discourse.org/t/mobile-development-issue-cant-verify-csrf-token-authenticity/151670)

<div class="topic-metadata">

**Author:** [@X\_Code](https://meta.discourse.org/u/X_Code)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 6:36am UTC](https://meta.discourse.org/t/mobile-development-issue-cant-verify-csrf-token-authenticity/151670 "2020-05-16T06:36:00Z")

</div>

Hi, I am trying to develop mobile app for discourse using flutter. I sent GET request of /session/csrf.json to get a csrf token in my mobile app. Next I added header x-csrf-token to send a POST request to upload avatar…

---

## [How can I whitelist a class in a theme?](https://meta.discourse.org/t/how-can-i-whitelist-a-class-in-a-theme/79520)

<div class="topic-metadata">

**Author:** [@Johani](https://meta.discourse.org/u/Johani)\
**Replies:** 15\
**Last updated:** [May 15, 2020, 10:37am UTC](https://meta.discourse.org/t/how-can-i-whitelist-a-class-in-a-theme/79520 "2020-05-15T10:37:03Z")

</div>

I have a working carousel which I would like to package as a theme: I’ve been trying to figure out how to whitelist a class or attribute for the script to target that would work with under a theme. I’ve read: https…

---

## [Qunit in Docker](https://meta.discourse.org/t/qunit-in-docker/138232)

<div class="topic-metadata">

**Author:** [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)\
**Replies:** 6\
**Last updated:** [May 14, 2020, 9:33pm UTC](https://meta.discourse.org/t/qunit-in-docker/138232 "2020-05-14T21:33:38Z")

</div>

Hi, I followed the Beginners Guide to Install Discourse for Development using Docker, wrote my plugin and would now like to write tests for it. However, the qunit site is not accessible at http://localhost:3000/qunit (E…

---

## [Running Discourse on Docker for Mac](https://meta.discourse.org/t/running-discourse-on-docker-for-mac/49682)

<div class="topic-metadata">

**Author:** [@PabloC](https://meta.discourse.org/u/PabloC)\
**Replies:** 46\
**Last updated:** [May 14, 2020, 4:18pm UTC](https://meta.discourse.org/t/running-discourse-on-docker-for-mac/49682 "2020-05-14T16:18:21Z")

</div>

Hi! I’m trying to install Discourse locally using the relatively new Docker for Mac. This is the error I’m getting while trying to rebuild for the first time: /launcher rebuild app Ensuring launcher is up to date Fetc…

---

## [API Key as a query string parameter is a security risk, right?](https://meta.discourse.org/t/api-key-as-a-query-string-parameter-is-a-security-risk-right/67661)

<div class="topic-metadata">

**Author:** [@SwisherSweet](https://meta.discourse.org/u/SwisherSweet)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 2:59pm UTC](https://meta.discourse.org/t/api-key-as-a-query-string-parameter-is-a-security-risk-right/67661 "2020-05-14T14:59:06Z")

</div>

I’m working with the Discourse API, and have learned that in order to perform a GET one must include the API key and API username in the URL as a parameter: curl -X GET "http://127.0.0.1:3000/admin/users/list/active.jso…

---

## [How to get all the deleted posts for a specific topic](https://meta.discourse.org/t/how-to-get-all-the-deleted-posts-for-a-specific-topic/151324)

<div class="topic-metadata">

**Author:** [@ankita\_srivastava](https://meta.discourse.org/u/ankita_srivastava)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 11:19pm UTC](https://meta.discourse.org/t/how-to-get-all-the-deleted-posts-for-a-specific-topic/151324 "2020-05-13T23:19:04Z")

</div>

I am trying to get all the deleted post for a specific topic through an API call. Any Discourse API available for such case?

---

## [How can I change the Login Required page style?](https://meta.discourse.org/t/how-can-i-change-the-login-required-page-style/40009)

<div class="topic-metadata">

**Author:** [@mansoorix](https://meta.discourse.org/u/mansoorix)\
**Replies:** 20\
**Last updated:** [May 13, 2020, 8:46pm UTC](https://meta.discourse.org/t/how-can-i-change-the-login-required-page-style/40009 "2020-05-13T20:46:05Z")

</div>

Hello Friends, There is a welcome page in Discourse in which when the website is in private mode this message comes up: An account is required. Please create an account or log in to continue. I want to change the st…

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

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