# Development

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

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

**Page:** 87

---

## [How email system work?](https://meta.discourse.org/t/how-email-system-work/162923)

<div class="topic-metadata">

**Author:** [@Nikolay](https://meta.discourse.org/u/Nikolay)\
**Replies:** 1\
**Last updated:** [September 3, 2020, 9:42pm UTC](https://meta.discourse.org/t/how-email-system-work/162923 "2020-09-03T21:42:17Z")

</div>

Hello all. I want to change behavior of my forum. Dont ask why, but i want forum to send emails data to Rabbitmq queue instead of sending them using ordinary email services.. Can you please tell me, where is the line …

---

## [Is there a way to change or delete the secondary email](https://meta.discourse.org/t/is-there-a-way-to-change-or-delete-the-secondary-email/162933)

<div class="topic-metadata">

**Author:** [@mpemburn](https://meta.discourse.org/u/mpemburn)\
**Replies:** 2\
**Last updated:** [September 3, 2020, 6:06pm UTC](https://meta.discourse.org/t/is-there-a-way-to-change-or-delete-the-secondary-email/162933 "2020-09-03T18:06:52Z")

</div>

Hi, I searched here and in the API docs, but I can’t see any way to affect the secondary email. My primary need is to delete it, but we may want to change it as some point. Thanks in advance, Mark

---

## [Create Topic via API behalf of another user](https://meta.discourse.org/t/create-topic-via-api-behalf-of-another-user/162633)

<div class="topic-metadata">

**Author:** [@Q3manish](https://meta.discourse.org/u/Q3manish)\
**Replies:** 2\
**Last updated:** [September 2, 2020, 4:27am UTC](https://meta.discourse.org/t/create-topic-via-api-behalf-of-another-user/162633 "2020-09-02T04:27:17Z")

</div>

Is this possible create topic via API behalf of user but that user not create a topic by dashboard.

---

## [How to put button in the corner of the screen?](https://meta.discourse.org/t/how-to-put-button-in-the-corner-of-the-screen/162488)

<div class="topic-metadata">

**Author:** [@verilog15](https://meta.discourse.org/u/verilog15)\
**Replies:** 5\
**Last updated:** [September 1, 2020, 8:16pm UTC](https://meta.discourse.org/t/how-to-put-button-in-the-corner-of-the-screen/162488 "2020-09-01T20:16:26Z")

</div>

Hello community! I’m trying to study how to create a plugin in Discourse. Currently, I’m trying to figure out how to put a button in the corner of the screen and if clicked, handle the request. How can I do it? It’s rea…

---

## [Display topics with minimum view count](https://meta.discourse.org/t/display-topics-with-minimum-view-count/162673)

<div class="topic-metadata">

**Author:** [@wishspinner](https://meta.discourse.org/u/wishspinner)\
**Replies:** 0\
**Last updated:** [September 1, 2020, 3:34pm UTC](https://meta.discourse.org/t/display-topics-with-minimum-view-count/162673 "2020-09-01T15:34:58Z")

</div>

Hi all, I’m looking to create a list of topics within a specific category that have at least X number of views, date descending, and wanted to see if you all had any suggestions on what would be the best way. It would …

---

## [Webhook requests events data, where is it saved, and how to switch the logging off?](https://meta.discourse.org/t/webhook-requests-events-data-where-is-it-saved-and-how-to-switch-the-logging-off/162499)

<div class="topic-metadata">

**Author:** [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Replies:** 2\
**Last updated:** [August 31, 2020, 9:51pm UTC](https://meta.discourse.org/t/webhook-requests-events-data-where-is-it-saved-and-how-to-switch-the-logging-off/162499 "2020-08-31T21:51:52Z")

</div>

Just playing around with webhooks and it is nice to see the latest requests made. @team → Are all those logs saved forever (in the database) or periodically erased by sidekiq or limited to a max number (e.g. last 100…

---

## [Facing an issue while installing some gems in the plugin](https://meta.discourse.org/t/facing-an-issue-while-installing-some-gems-in-the-plugin/161780)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 9\
**Last updated:** [August 31, 2020, 4:20am UTC](https://meta.discourse.org/t/facing-an-issue-while-installing-some-gems-in-the-plugin/161780 "2020-08-31T04:20:39Z")

</div>

@sam I’m unable to install some gems in the plugin, for e.g. google-protobuf. This gem is dependency for google-cloud-vision gem. Here’s a plugin trying to install it. GitHub - fzngagan/gem-issue · GitHub ▶ Logs The re…

---

## [Login flow (Flask -\> Discourse -\> Flask) with OAuth](https://meta.discourse.org/t/login-flow-flask-discourse-flask-with-oauth/162153)

<div class="topic-metadata">

**Author:** [@\_nix](https://meta.discourse.org/u/_nix)\
**Replies:** 2\
**Last updated:** [August 27, 2020, 2:39pm UTC](https://meta.discourse.org/t/login-flow-flask-discourse-flask-with-oauth/162153 "2020-08-27T14:39:23Z")

</div>

Hi there! I have two questions that are related, hopefully someone can help :slight\_smile: I’ve configured my Discourse instance to support OAuth via Twitter, Facebook, and Google. What I’m looking to do is the followi…

---

## [How to Intercept page scroll event](https://meta.discourse.org/t/how-to-intercept-page-scroll-event/44069)

<div class="topic-metadata">

**Author:** [@itkin](https://meta.discourse.org/u/itkin)\
**Replies:** 4\
**Last updated:** [August 27, 2020, 12:40pm UTC](https://meta.discourse.org/t/how-to-intercept-page-scroll-event/44069 "2020-08-27T12:40:15Z")

</div>

Hello, I’d like to add a little script to trigger a function when the header logo changes (when the window is scrolled down). Well i’m pretty lost at it, being a total newbie to ember and its ecosystem… Do you which f…

---

## [How can I get the list of Discourse Topic IDs dynamically](https://meta.discourse.org/t/how-can-i-get-the-list-of-discourse-topic-ids-dynamically/162158)

<div class="topic-metadata">

**Author:** [@Duksh](https://meta.discourse.org/u/Duksh)\
**Replies:** 2\
**Last updated:** [August 27, 2020, 3:53am UTC](https://meta.discourse.org/t/how-can-i-get-the-list-of-discourse-topic-ids-dynamically/162158 "2020-08-27T03:53:23Z")

</div>

Continuing the discussion from Embedding Discourse Comments via Javascript: Which Discourse API should I call to from a PHP function in order to get all the Discourse topic IDs loaded in a searchable dropdown box in CM…

---

## [Where is extra\_data saved?](https://meta.discourse.org/t/where-is-extra-data-saved/85270)

<div class="topic-metadata">

**Author:** [@NotAnonymous](https://meta.discourse.org/u/NotAnonymous)\
**Replies:** 2\
**Last updated:** [April 13, 2018, 7:54pm UTC](https://meta.discourse.org/t/where-is-extra-data-saved/85270 "2018-04-13T19:54:26Z")

</div>

In the plugin: This code is used: result = Auth::Result.new result.extra\_data = “some value” Where is that extra\_data value saved? I’ve checked various tables but have yet to find it. Thought I’d check here befor…

---

## [Custom\_fields updated simultaneous cause value to turn into array](https://meta.discourse.org/t/custom-fields-updated-simultaneous-cause-value-to-turn-into-array/162034)

<div class="topic-metadata">

**Author:** [@Stefan\_Brighiu\_M](https://meta.discourse.org/u/Stefan_Brighiu_M)\
**Replies:** 7\
**Last updated:** [August 25, 2020, 4:51pm UTC](https://meta.discourse.org/t/custom-fields-updated-simultaneous-cause-value-to-turn-into-array/162034 "2020-08-25T16:51:34Z")

</div>

This bug seems to be fixed a while back from this post. Custom\_fields simultaneous save with json becomes an array Unfortunately, I am now dealing with simultaneous endpoints being called that update the user custom\_fie…

---

## [Inconsistent behaviour in UserUpdater class](https://meta.discourse.org/t/inconsistent-behaviour-in-userupdater-class/161360)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 4\
**Last updated:** [August 25, 2020, 3:28pm UTC](https://meta.discourse.org/t/inconsistent-behaviour-in-userupdater-class/161360 "2020-08-25T15:28:58Z")

</div>

@eviltrout Repro steps: Let’s create a user field and it has id 1. Run the second line of the below code twice. Case 1 up = UserUpdater.new(Discourse.system\_user, User.find(1)) up.update({:custom\_fields=\>{:user\_field…

---

## [Custom field casting affected by recent update?](https://meta.discourse.org/t/custom-field-casting-affected-by-recent-update/122746)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 5\
**Last updated:** [August 25, 2020, 6:22am UTC](https://meta.discourse.org/t/custom-field-casting-affected-by-recent-update/122746 "2020-08-25T06:22:47Z")

</div>

There have been multiple bug reports for the events plugin in the last two days that all seem to be type-casting issues with custom fields. The events plugin hasn’t been substantively updated in a few months. The plug…

---

## [How change repo code in container docker](https://meta.discourse.org/t/how-change-repo-code-in-container-docker/161747)

<div class="topic-metadata">

**Author:** [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)\
**Replies:** 0\
**Last updated:** [August 22, 2020, 9:09am UTC](https://meta.discourse.org/t/how-change-repo-code-in-container-docker/161747 "2020-08-22T09:09:26Z")

</div>

I have docker container running now, how do I update my plugin code in it inside the container? upd: solved do it as a last resort cd /var/discourse ./launcher enter app cd /plugins/MYPLUGIN vi filename

---

## [Intergrading discoures in to a application](https://meta.discourse.org/t/intergrading-discoures-in-to-a-application/161533)

<div class="topic-metadata">

**Author:** [@n\_c\_r\_Bock](https://meta.discourse.org/u/n_c_r_Bock)\
**Replies:** 1\
**Last updated:** [August 20, 2020, 4:38pm UTC](https://meta.discourse.org/t/intergrading-discoures-in-to-a-application/161533 "2020-08-20T16:38:09Z")

</div>

I am trying to build an application that has an ecosystem of different app’s, and one of them is a discussion gruppe, one of the requirements to the discussion gruppe, is that before you can become a new member everyone …

---

## [DEV: cannot load such file -- omniauth/strategies/oauth2 (LoadError)](https://meta.discourse.org/t/dev-cannot-load-such-file-omniauth-strategies-oauth2-loaderror/161259)

<div class="topic-metadata">

**Author:** [@DBHacker](https://meta.discourse.org/u/DBHacker)\
**Replies:** 4\
**Last updated:** [August 19, 2020, 5:38am UTC](https://meta.discourse.org/t/dev-cannot-load-such-file-omniauth-strategies-oauth2-loaderror/161259 "2020-08-19T05:38:31Z")

</div>

All of a sudden, after doing a git pull into my discourse dev env on mac, getting this error after a successful bundle install when I try any rake or rails command. gems/activesupport-6.0.3.2/lib/active\_support/dependen…

---

## [Not able to add Whisper Post Using API](https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145)

<div class="topic-metadata">

**Author:** [@Minhaj](https://meta.discourse.org/u/Minhaj)\
**Replies:** 3\
**Last updated:** [August 18, 2020, 3:41pm UTC](https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145 "2020-08-18T15:41:54Z")

</div>

I am unable to add whisper post Using the API. I am passing Whisper field to true in the given go struct. type Post struct { TopicID int \`json:"topic\_id"\` Raw string \`json:"raw"\` CreatedAt time.Time…

---

## [Is it somehow possible to pass the initial postStream json object into the GTM datalayer?](https://meta.discourse.org/t/is-it-somehow-possible-to-pass-the-initial-poststream-json-object-into-the-gtm-datalayer/161035)

<div class="topic-metadata">

**Author:** [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Replies:** 1\
**Last updated:** [August 18, 2020, 12:49am UTC](https://meta.discourse.org/t/is-it-somehow-possible-to-pass-the-initial-poststream-json-object-into-the-gtm-datalayer/161035 "2020-08-18T00:49:57Z")

</div>

Is it somehow possible to pass the initial post stream object for topic pages to the GTM data layer without doing another ajax request like I do right now as a bad workaround? \<script type="text/discourse-plugin" versio…

---

## [Override topic-list-item.hbr template for specific page](https://meta.discourse.org/t/override-topic-list-item-hbr-template-for-specific-page/161039)

<div class="topic-metadata">

**Author:** [@Varhall](https://meta.discourse.org/u/Varhall)\
**Replies:** 4\
**Last updated:** [August 16, 2020, 3:03pm UTC](https://meta.discourse.org/t/override-topic-list-item-hbr-template-for-specific-page/161039 "2020-08-16T15:03:00Z")

</div>

Hi all! In my custom theme i override template topic-list-item.hbr but it affected the related topics, messages, etc. How can I override this template only for the main list of topics, categories and tags? Such a li…

---

## [Effective event watching for Page View oriented metrics](https://meta.discourse.org/t/effective-event-watching-for-page-view-oriented-metrics/121125)

<div class="topic-metadata">

**Author:** [@will\_io](https://meta.discourse.org/u/will_io)\
**Replies:** 2\
**Last updated:** [August 15, 2020, 6:53pm UTC](https://meta.discourse.org/t/effective-event-watching-for-page-view-oriented-metrics/121125 "2020-08-15T18:53:29Z")

</div>

One of the truly beautiful parts about Discourse is the fact that once logged-in you load the page once and the rest of the user experience navigates like a true software application. Much of it is javascript feeding fro…

---

## [virtualPageView and the virtual DOM](https://meta.discourse.org/t/virtualpageview-and-the-virtual-dom/160975)

<div class="topic-metadata">

**Author:** [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Replies:** 2\
**Last updated:** [August 15, 2020, 6:12pm UTC](https://meta.discourse.org/t/virtualpageview-and-the-virtual-dom/160975 "2020-08-15T18:12:33Z")

</div>

We want to use GTM to inject ads into the DOM. We installed the ads plugin and set up the various empty house ad types with div containers like \<div id="adunit\_x"\>\</div\> However, when evaluating the id of all ad div con…

---

## [Change user's email address via API without confirmation](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685)

<div class="topic-metadata">

**Author:** [@paully21](https://meta.discourse.org/u/paully21)\
**Replies:** 5\
**Last updated:** [August 14, 2020, 11:47pm UTC](https://meta.discourse.org/t/change-users-email-address-via-api-without-confirmation/84685 "2020-08-14T23:47:15Z")

</div>

Is there a way to change a user’s email address using the API without triggering a confirmation email? Our users are actually members of our association and when they submit an email address change directly to staff, th…

---

## [User avatars not in S3 but served via discourse\_cdn\_url](https://meta.discourse.org/t/user-avatars-not-in-s3-but-served-via-discourse-cdn-url/160920)

<div class="topic-metadata">

**Author:** [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 7:21pm UTC](https://meta.discourse.org/t/user-avatars-not-in-s3-but-served-via-discourse-cdn-url/160920 "2020-08-14T19:21:30Z")

</div>

While setting up our S3 cached with CloudFront, and origin assets cached with via another CloudFront subdomain, I saw that the user avatars are still hosted and served via https://cdn-origin.xxxxx.com. Is this correct, …

---

## [How do I send a topic id just created?](https://meta.discourse.org/t/how-do-i-send-a-topic-id-just-created/160606)

<div class="topic-metadata">

**Author:** [@slivo](https://meta.discourse.org/u/slivo)\
**Replies:** 10\
**Last updated:** [August 13, 2020, 7:40pm UTC](https://meta.discourse.org/t/how-do-i-send-a-topic-id-just-created/160606 "2020-08-13T19:40:19Z")

</div>

After creating a topic in a given category, I would like to send its topic ID automatically. How can I do it ? (My goal is to respond to the topic and I need to know his ID)

---

## [How to trigger some JS code if the signup form is opened or closed?](https://meta.discourse.org/t/how-to-trigger-some-js-code-if-the-signup-form-is-opened-or-closed/160764)

<div class="topic-metadata">

**Author:** [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 4:14pm UTC](https://meta.discourse.org/t/how-to-trigger-some-js-code-if-the-signup-form-is-opened-or-closed/160764 "2020-08-13T16:14:55Z")

</div>

Is it possible to monitor this event (open and closing of the signup modal) via the plugin API and fire some other JS code? Is there a boilerplate code to monitor all events fired by the plugin API and log via the conso…

---

## [Sticky user card contents theme](https://meta.discourse.org/t/sticky-user-card-contents-theme/159875)

<div class="topic-metadata">

**Author:** [@sonicb](https://meta.discourse.org/u/sonicb)\
**Replies:** 5\
**Last updated:** [August 13, 2020, 1:21pm UTC](https://meta.discourse.org/t/sticky-user-card-contents-theme/159875 "2020-08-13T13:21:30Z")

</div>

I’ve created a more elaborate user-card-contents theme, adding some custom user fields. I’d like to make the card sticky, with a close button - in a similar manner to the “Create a new Topic” component. Am I right in th…

---

## [Discourse API 'update category' required parameters](https://meta.discourse.org/t/discourse-api-update-category-required-parameters/132424)

<div class="topic-metadata">

**Author:** [@andrew5](https://meta.discourse.org/u/andrew5)\
**Replies:** 3\
**Last updated:** [August 12, 2020, 6:43pm UTC](https://meta.discourse.org/t/discourse-api-update-category-required-parameters/132424 "2020-08-12T18:43:24Z")

</div>

Why are the name, color, and text\_color attributes required for the update category route (Discourse API Docs)? It seems like attributes such as the slug should be able to be updated without specifying any other attrib…

---

## [Upload avatar image with API](https://meta.discourse.org/t/upload-avatar-image-with-api/55253)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Replies:** 13\
**Last updated:** [August 12, 2020, 3:18pm UTC](https://meta.discourse.org/t/upload-avatar-image-with-api/55253 "2020-08-12T15:18:12Z")

</div>

I’m trying to upload an avatar image with the API as follows. I’m getting back a 500 error and I don’t see anything in the Error Logs on the server, via the Admin user. I’ve attached a picture with the data from a Post…

---

## [Sample Payloads](https://meta.discourse.org/t/sample-payloads/160334)

<div class="topic-metadata">

**Author:** [@Conor\_McCarthy](https://meta.discourse.org/u/Conor_McCarthy)\
**Replies:** 2\
**Last updated:** [August 11, 2020, 7:46pm UTC](https://meta.discourse.org/t/sample-payloads/160334 "2020-08-11T19:46:17Z")

</div>

I’m looking for samples of the user-triggered webhook payloads and wondered if there were examples anywhere? Is there a repository of sample webhook payloads anywhere?

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

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