# Development

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

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

**Page:** 93

---

## [Why is adding ENV not amending client side site settings](https://meta.discourse.org/t/why-is-adding-env-not-amending-client-side-site-settings/151271)

<div class="topic-metadata">

**Author:** [@neounix](https://meta.discourse.org/u/neounix)\
**Replies:** 3\
**Last updated:** [May 13, 2020, 3:53am UTC](https://meta.discourse.org/t/why-is-adding-env-not-amending-client-side-site-settings/151271 "2020-05-13T03:53:25Z")

</div>

Hi @sam, Maybe I am reading this wrong or doing this wrong? In app.yml , I added a custom env var: env: DISCOURSE\_MY\_ENV\_TEST: app and rebuilt the container with a little custom plugin where I dumped all the sit…

---

## [Cant backup because of version mismatch on aws](https://meta.discourse.org/t/cant-backup-because-of-version-mismatch-on-aws/131915)

<div class="topic-metadata">

**Author:** [@thomas\_grice](https://meta.discourse.org/u/thomas_grice)\
**Replies:** 8\
**Last updated:** [May 12, 2020, 6:54pm UTC](https://meta.discourse.org/t/cant-backup-because-of-version-mismatch-on-aws/131915 "2020-05-12T18:54:00Z")

</div>

Hi, I’m configuring an environment that is pointed at an external AWS rds instance (postgres 11.x) I notice this error when trying to backup through the UI: \[2019-10-25 21:50:35\] Dumping the public schema of the databa…

---

## [Help editing user card](https://meta.discourse.org/t/help-editing-user-card/151184)

<div class="topic-metadata">

**Author:** [@roberto.massardi](https://meta.discourse.org/u/roberto.massardi)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 1:17pm UTC](https://meta.discourse.org/t/help-editing-user-card/151184 "2020-05-12T13:17:23Z")

</div>

Hi, i am new to Discourse, and i am developing a theme; i have to modify the user card and i don’t know what the best way to do this is; I have to visualize some custom fields on the top of the card (under the title), bu…

---

## [Parsing webhook header info from Discourse into Google Sheets](https://meta.discourse.org/t/parsing-webhook-header-info-from-discourse-into-google-sheets/151172)

<div class="topic-metadata">

**Author:** [@Conor\_McCarthy](https://meta.discourse.org/u/Conor_McCarthy)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 1:16pm UTC](https://meta.discourse.org/t/parsing-webhook-header-info-from-discourse-into-google-sheets/151172 "2020-05-12T13:16:13Z")

</div>

Hi, I have a Discourse webhook pointing to a Google apps script that writes the data to a spreadsheet. What I cant seem to fin is how to get the header information for that webhook event in my google apps script e.g. X-…

---

## [To style each paragraph separately for RTL and LTR languages](https://meta.discourse.org/t/to-style-each-paragraph-separately-for-rtl-and-ltr-languages/151167)

<div class="topic-metadata">

**Author:** [@bekircem](https://meta.discourse.org/u/bekircem)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 10:51am UTC](https://meta.discourse.org/t/to-style-each-paragraph-separately-for-rtl-and-ltr-languages/151167 "2020-05-12T10:51:51Z")

</div>

Hi, i am trying to use RTL and LTR languages together in Discourse. I thought of solving this with CSS, since the paragraphs will be in a certain order in the content. At first I am planning to use nth-type-of for the p …

---

## [I want to post youtube link as raw data](https://meta.discourse.org/t/i-want-to-post-youtube-link-as-raw-data/151015)

<div class="topic-metadata">

**Author:** [@neerajsingh](https://meta.discourse.org/u/neerajsingh)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 5:57am UTC](https://meta.discourse.org/t/i-want-to-post-youtube-link-as-raw-data/151015 "2020-05-12T05:57:38Z")

</div>

I want to post a youtube link as raw data and response is nothing if anyone facing this type of problem then please help me. I am using posts.json API and send data like url = … +“posts.json” type= post raw = “https:…

---

## [Multiple users liking a single post notification](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026)

<div class="topic-metadata">

**Author:** [@esmon](https://meta.discourse.org/u/esmon)\
**Replies:** 5\
**Last updated:** [May 11, 2020, 5:55pm UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026 "2020-05-11T17:55:01Z")

</div>

Did some poking around in the code for notifications and noticed that this condition is never met in widgets\<U+2069\>/notification-item.js.es6. Running 2.3.8. Doing a console.log of data object shows that data.count i…

---

## [Search API doesn't work](https://meta.discourse.org/t/search-api-doesnt-work/151023)

<div class="topic-metadata">

**Author:** [@ultrakiller](https://meta.discourse.org/u/ultrakiller)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 9:06am UTC](https://meta.discourse.org/t/search-api-doesnt-work/151023 "2020-05-11T09:06:02Z")

</div>

I am trying to use the Discourse API for a discord bot. I want to pass a search query via my bot and return the results back to discord after utilizing the Discourse API. The problem is I can’t get the API to work. It j…

---

## [JSX instead of h (createElement) function in widgets and other places](https://meta.discourse.org/t/jsx-instead-of-h-createelement-function-in-widgets-and-other-places/150040)

<div class="topic-metadata">

**Author:** [@zcuric](https://meta.discourse.org/u/zcuric)\
**Replies:** 14\
**Last updated:** [May 10, 2020, 4:31pm UTC](https://meta.discourse.org/t/jsx-instead-of-h-createelement-function-in-widgets-and-other-places/150040 "2020-05-10T16:31:04Z")

</div>

Hi, I’ve been experimenting with JSX in widgets for better developer experience in themes (I’ve came up with my own setup for theme development without header.html etc, more on that in another topic). I was wondering wh…

---

## [How to modify composer.js file into the plugin directory](https://meta.discourse.org/t/how-to-modify-composer-js-file-into-the-plugin-directory/150806)

<div class="topic-metadata">

**Author:** [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)\
**Replies:** 3\
**Last updated:** [May 10, 2020, 10:23am UTC](https://meta.discourse.org/t/how-to-modify-composer-js-file-into-the-plugin-directory/150806 "2020-05-10T10:23:54Z")

</div>

Hi I am writing one plugin named discourse topic curator in which i modified the composer.hbs template file but now i want to modify the composer.js file which is present in below path, https://github.com/discourse/dis…

---

## [Changed API for directory\_items](https://meta.discourse.org/t/changed-api-for-directory-items/150669)

<div class="topic-metadata">

**Author:** [@DLu](https://meta.discourse.org/u/DLu)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 8:54pm UTC](https://meta.discourse.org/t/changed-api-for-directory-items/150669 "2020-05-08T20:54:17Z")

</div>

This commit moves total\_rows\_directory\_items and load\_more\_directory\_items under the meta object. This is the current behavior on the test server. However, this is different than what the documentation says and differen…

---

## [How to get the count of questions in a category using API](https://meta.discourse.org/t/how-to-get-the-count-of-questions-in-a-category-using-api/150845)

<div class="topic-metadata">

**Author:** [@Venkat\_K](https://meta.discourse.org/u/Venkat_K)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 7:03pm UTC](https://meta.discourse.org/t/how-to-get-the-count-of-questions-in-a-category-using-api/150845 "2020-05-08T19:03:12Z")

</div>

Hi, I am trying to get the count of questions in a category and subcategory using api, is there a way to get that ? Thanks

---

## [Auto migrate test database schema](https://meta.discourse.org/t/auto-migrate-test-database-schema/150786)

<div class="topic-metadata">

**Author:** [@xrav3nz](https://meta.discourse.org/u/xrav3nz)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 1:15pm UTC](https://meta.discourse.org/t/auto-migrate-test-database-schema/150786 "2020-05-08T13:15:45Z")

</div>

Related: Db:drop, create & migrate behavior with RAILS\_ENV=development - #2 by taylorthurlow - A May Of WTFs - Ruby on Rails Discussions Not sure if we have explored this before, but Rails can automatically maintain tes…

---

## [Is it possible to fetch image Urls array for every post in latest.json?](https://meta.discourse.org/t/is-it-possible-to-fetch-image-urls-array-for-every-post-in-latest-json/149727)

<div class="topic-metadata">

**Author:** [@afrin](https://meta.discourse.org/u/afrin)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 12:39pm UTC](https://meta.discourse.org/t/is-it-possible-to-fetch-image-urls-array-for-every-post-in-latest-json/149727 "2020-05-08T12:39:46Z")

</div>

Is it possible to fetch image Urls array for every post in latest.json?

---

## [Remove New Topic Button](https://meta.discourse.org/t/remove-new-topic-button/148003)

<div class="topic-metadata">

**Author:** [@baileysteelefarm](https://meta.discourse.org/u/baileysteelefarm)\
**Replies:** 6\
**Last updated:** [May 7, 2020, 8:18pm UTC](https://meta.discourse.org/t/remove-new-topic-button/148003 "2020-05-07T20:18:40Z")

</div>

How can I remove the New Topic button from the main page? I only want it to appear when a user selects a category.

---

## [Users.updated\_at not renewed on all updates](https://meta.discourse.org/t/users-updated-at-not-renewed-on-all-updates/150701)

<div class="topic-metadata">

**Author:** [@DDo](https://meta.discourse.org/u/DDo)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 3:55pm UTC](https://meta.discourse.org/t/users-updated-at-not-renewed-on-all-updates/150701 "2020-05-07T15:55:07Z")

</div>

When modifying a user via the api I wanted to use users.updated\_at as criteria for the last update. Now I noticed that it is not set anew upon all actions. Eg, when changing watched categories or watch 1st post categori…

---

## [Gatsby plugin to use Discourse as headless CMS](https://meta.discourse.org/t/gatsby-plugin-to-use-discourse-as-headless-cms/150532)

<div class="topic-metadata">

**Author:** [@kristoferlund](https://meta.discourse.org/u/kristoferlund)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 5:48am UTC](https://meta.discourse.org/t/gatsby-plugin-to-use-discourse-as-headless-cms/150532 "2020-05-06T05:48:37Z")

</div>

I made a plugin, not for Discourse but for Gatsby. The plugin sources topic lists from a Discourse installation and transforms into Gatsby nodes. It simplifies using Discourse a headless CMS. We use it in a project to b…

---

## [Markdown Multiple CSS Classes on Tag](https://meta.discourse.org/t/markdown-multiple-css-classes-on-tag/150616)

<div class="topic-metadata">

**Author:** [@Ghan](https://meta.discourse.org/u/Ghan)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 3:42pm UTC](https://meta.discourse.org/t/markdown-multiple-css-classes-on-tag/150616 "2020-05-06T15:42:49Z")

</div>

Is it possible to add multiple CSS classes to a tag in the markdown rules? (This is via a plugin) It seems that whenever I try this, any class after the first is removed. If this is possible, what is the proper syntax bo…

---

## [Uploading a local image using the API](https://meta.discourse.org/t/uploading-a-local-image-using-the-api/127071)

<div class="topic-metadata">

**Author:** [@plongitudes](https://meta.discourse.org/u/plongitudes)\
**Replies:** 4\
**Last updated:** [May 6, 2020, 5:03am UTC](https://meta.discourse.org/t/uploading-a-local-image-using-the-api/127071 "2020-05-06T05:03:34Z")

</div>

Hey folks, I hope this is the right place to ask. I’m working on importing a set of data from another forum into our new Discourse instance (internal knowledge posts that we want to transition). I’ve got our old data n…

---

## [Markdown Inline vs Block Rules](https://meta.discourse.org/t/markdown-inline-vs-block-rules/150546)

<div class="topic-metadata">

**Author:** [@Ghan](https://meta.discourse.org/u/Ghan)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 3:30am UTC](https://meta.discourse.org/t/markdown-inline-vs-block-rules/150546 "2020-05-06T03:30:54Z")

</div>

Is it possible to have the same tag be recognized by both an inline rule and a block rule? I’ve been building some bbcode rules and having the tag on the same line as text is very common on our board, making an inline r…

---

## [Ruby on rails console command](https://meta.discourse.org/t/ruby-on-rails-console-command/150438)

<div class="topic-metadata">

**Author:** [@mevaha](https://meta.discourse.org/u/mevaha)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 4:28pm UTC](https://meta.discourse.org/t/ruby-on-rails-console-command/150438 "2020-05-05T16:28:25Z")

</div>

Hello All, I Want to perfom some daily admin requests (add, delete …) in our discourse by rails console, I’m seaching if there any community documentations or any help will be apreciated.

---

## [How to Modify Ember Route Class](https://meta.discourse.org/t/how-to-modify-ember-route-class/143684)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 3\
**Last updated:** [March 10, 2020, 10:12pm UTC](https://meta.discourse.org/t/how-to-modify-ember-route-class/143684 "2020-03-10T22:12:09Z")

</div>

Hello All, I want to modify the Ember Route class (/app/assets/javascripts/discourse/routes/tags-show.js.es6) in the same way that we modify Controller and Component classes using pluginAPI. An example that we modify c…

---

## [Importing a custom user profile field from legacy forum software](https://meta.discourse.org/t/importing-a-custom-user-profile-field-from-legacy-forum-software/149949)

<div class="topic-metadata">

**Author:** [@007](https://meta.discourse.org/u/007)\
**Replies:** 3\
**Last updated:** [May 1, 2020, 2:02am UTC](https://meta.discourse.org/t/importing-a-custom-user-profile-field-from-legacy-forum-software/149949 "2020-05-01T02:02:29Z")

</div>

I’m looking to add a custom field to an import script. The field is a dropdown. I stumbled upon this post, which documented how to create the field initially as part of the import process: It worked and the field is …

---

## [How to access the uncooked content from a theme component?](https://meta.discourse.org/t/how-to-access-the-uncooked-content-from-a-theme-component/150252)

<div class="topic-metadata">

**Author:** [@magjac](https://meta.discourse.org/u/magjac)\
**Replies:** 18\
**Last updated:** [May 4, 2020, 1:55pm UTC](https://meta.discourse.org/t/how-to-access-the-uncooked-content-from-a-theme-component/150252 "2020-05-04T13:55:25Z")

</div>

I’m developing a theme component where I would like to do something similar to: \[code\] main() { printf("Hello World!\\n"); } \[/code\] which yields: main() { printf("Hello World!\\n"); } I’m using api.decorateCooked() …

---

## [HTML Whitelisting](https://meta.discourse.org/t/html-whitelisting/150251)

<div class="topic-metadata">

**Author:** [@Ghan](https://meta.discourse.org/u/Ghan)\
**Replies:** 0\
**Last updated:** [May 3, 2020, 4:21pm UTC](https://meta.discourse.org/t/html-whitelisting/150251 "2020-05-03T16:21:31Z")

</div>

Is there any guidance on how to properly use the markdown whitelister? In the many examples I’ve been searching through, I see things like: tag\[attribute\] but then there are also cases like tag.attribute being added as w…

---

## [Async/await in plugin: works in dev instance, not in docker instance](https://meta.discourse.org/t/async-await-in-plugin-works-in-dev-instance-not-in-docker-instance/82363)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 14\
**Last updated:** [May 3, 2020, 9:43am UTC](https://meta.discourse.org/t/async-await-in-plugin-works-in-dev-instance-not-in-docker-instance/82363 "2020-05-03T09:43:51Z")

</div>

I get this error when installing a plugin in a docker instance: Compressing: plugin-third-party-ea46d31326df4fb4ed1d79ef5ecad5179b0512d15492b09e348b67b027cced32.js uglifyjs '/var/www/discourse/public/assets/\_plugin-thir…

---

## [Crawling Discourse Meta](https://meta.discourse.org/t/crawling-discourse-meta/150120)

<div class="topic-metadata">

**Author:** [@m\_imran\_123](https://meta.discourse.org/u/m_imran_123)\
**Replies:** 3\
**Last updated:** [May 2, 2020, 7:42am UTC](https://meta.discourse.org/t/crawling-discourse-meta/150120 "2020-05-02T07:42:29Z")

</div>

Hi there, I’m new to the platform and I was wondering if we are allowed to crawl the Discourse Meta Forum? Or do we need an API key? If so, how could I obtain an API key? I’m interesting in potentially contributing to t…

---

## [Render Rails custom view from plugin](https://meta.discourse.org/t/render-rails-custom-view-from-plugin/149830)

<div class="topic-metadata">

**Author:** [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 9:54pm UTC](https://meta.discourse.org/t/render-rails-custom-view-from-plugin/149830 "2020-04-29T21:54:39Z")

</div>

Hello, I’m working on a plugin that renders a Rails view on a specific path. I add the controller but when trying to render this specific controller action it says the view for the action doesn’t exist. Debugging for a…

---

## [Adding UI for Merge Users](https://meta.discourse.org/t/adding-ui-for-merge-users/149673)

<div class="topic-metadata">

**Author:** [@mpemburn](https://meta.discourse.org/u/mpemburn)\
**Replies:** 6\
**Last updated:** [April 29, 2020, 5:37pm UTC](https://meta.discourse.org/t/adding-ui-for-merge-users/149673 "2020-04-29T17:37:07Z")

</div>

Hi, We would like to be able to call the Merge Users plugin (discourse-merge-users/plugin.rb at master · curiousdannii/discourse-merge-users · GitHub) programmatically in some manner. I’ve used the API quite a bit for …

---

## [What is "archetype" field in latest.json?](https://meta.discourse.org/t/what-is-archetype-field-in-latest-json/149726)

<div class="topic-metadata">

**Author:** [@afrin](https://meta.discourse.org/u/afrin)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 8:07am UTC](https://meta.discourse.org/t/what-is-archetype-field-in-latest-json/149726 "2020-04-29T08:07:15Z")

</div>

What is the purpose of “archetype” field in latest.json?

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

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