# Development

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

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

**Page:** 61

---

## [Watching API](https://meta.discourse.org/t/watching-api/237739)

<div class="topic-metadata">

**Author:** [@chrisk](https://meta.discourse.org/u/chrisk)\
**Replies:** 3\
**Last updated:** [September 1, 2022, 12:53pm UTC](https://meta.discourse.org/t/watching-api/237739 "2022-09-01T12:53:13Z")

</div>

Hi, I am reviewing the REST API documentation, and am wondering if there is a way to gather a list of users watching/following any given topic? I hope to gather this information after posting the webhook of a new actio…

---

## [Tag-union implementation?](https://meta.discourse.org/t/tag-union-implementation/58121)

<div class="topic-metadata">

**Author:** [@ebadgley](https://meta.discourse.org/u/ebadgley)\
**Replies:** 10\
**Last updated:** [August 29, 2022, 1:57pm UTC](https://meta.discourse.org/t/tag-union-implementation/58121 "2022-08-29T13:57:00Z")

</div>

Continuing the discussion from Tags: category restrictions, tag groups, relationships: I’m interested in building a tag union capability that would mimic how tag intersections are currently implemented (Tag intersection…

---

## [Announcements topics](https://meta.discourse.org/t/announcements-topics/237393)

<div class="topic-metadata">

**Author:** [@dorl-moveo](https://meta.discourse.org/u/dorl-moveo)\
**Replies:** 3\
**Last updated:** [August 29, 2022, 11:57am UTC](https://meta.discourse.org/t/announcements-topics/237393 "2022-08-29T11:57:58Z")

</div>

Hey, I build my own theme and I would like to ask what is the best practice to display the announcements topics or any specific topics from single category? thanks

---

## [How can I add an attribute to User model?](https://meta.discourse.org/t/how-can-i-add-an-attribute-to-user-model/237348)

<div class="topic-metadata">

**Author:** [@Alienazk](https://meta.discourse.org/u/Alienazk)\
**Replies:** 3\
**Last updated:** [August 27, 2022, 6:41pm UTC](https://meta.discourse.org/t/how-can-i-add-an-attribute-to-user-model/237348 "2022-08-27T18:41:06Z")

</div>

I am trying to modify a plugin. The following code failed and threw an error like: # total\_points is a sum table with column "total\_earned\_points". module MyModel::UserExtension def self.prepended(base) base.…

---

## [How can I access composePrivateMessage from a post menu button?](https://meta.discourse.org/t/how-can-i-access-composeprivatemessage-from-a-post-menu-button/237352)

<div class="topic-metadata">

**Author:** [@tarek](https://meta.discourse.org/u/tarek)\
**Replies:** 0\
**Last updated:** [August 27, 2022, 6:38pm UTC](https://meta.discourse.org/t/how-can-i-access-composeprivatemessage-from-a-post-menu-button/237352 "2022-08-27T18:38:52Z")

</div>

Hello, I wrote a plugin for mailing list type behaviour, where emails can be replied to (only the sender) and reply-all (to the whole topic). I want to recreate this in the web UI as well by having a “reply” and “reply …

---

## [Rendering Component in decorativeWidget API](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537)

<div class="topic-metadata">

**Author:** [@Clement\_Decou](https://meta.discourse.org/u/Clement_Decou)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 1:02pm UTC](https://meta.discourse.org/t/rendering-component-in-decorativewidget-api/58537 "2022-08-26T13:02:57Z")

</div>

Hello, I have a component to render ads in my discourse {{numeramaAdsBlock "side\_ad"}} and i want to render this component inside the sticky sidebar in a topic. So i use decorateWidget to add my component inside the wid…

---

## [Insert the hbs template into the plugin outlet on the page -\> user-preferences-interface to user-preferences-account](https://meta.discourse.org/t/insert-the-hbs-template-into-the-plugin-outlet-on-the-page-user-preferences-interface-to-user-preferences-account/232948)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 13\
**Last updated:** [August 25, 2022, 6:38am UTC](https://meta.discourse.org/t/insert-the-hbs-template-into-the-plugin-outlet-on-the-page-user-preferences-interface-to-user-preferences-account/232948 "2022-08-25T06:38:48Z")

</div>

Hello, when I want to add to the user-preferences-account so that users can choose whether they want dark mode or light mode, I try to add it using the code below and put it there using the plugin outlet, the problem is …

---

## [Getting a topic statistics with API](https://meta.discourse.org/t/getting-a-topic-statistics-with-api/237052)

<div class="topic-metadata">

**Author:** [@Chittaranjan\_Jena](https://meta.discourse.org/u/Chittaranjan_Jena)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 2:57pm UTC](https://meta.discourse.org/t/getting-a-topic-statistics-with-api/237052 "2022-08-24T14:57:07Z")

</div>

How to get statistics of a topic (highlighted in red box in attached image) through API? I referred the discourse APIs and searched in forum but couldn’t get a proper answer. Can someone help please? Regards

---

## [Update Gemfile fast\_xor platform to :ruby](https://meta.discourse.org/t/update-gemfile-fast-xor-platform-to-ruby/159064)

<div class="topic-metadata">

**Author:** [@bjfish](https://meta.discourse.org/u/bjfish)\
**Replies:** 5\
**Last updated:** [August 21, 2022, 7:51pm UTC](https://meta.discourse.org/t/update-gemfile-fast-xor-platform-to-ruby/159064 "2022-08-21T19:51:22Z")

</div>

The fast\_xor platform is listed as :mri. However, this gem appears to require C extensions but it is not specific to MRI: discourse/Gemfile at 0c7eaa57b26a22b0d0f85957ce0720be748d1fe6 · discourse/discourse · GitHub I ha…

---

## [Speccing out a full page chat plugin](https://meta.discourse.org/t/speccing-out-a-full-page-chat-plugin/49430)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 29\
**Last updated:** [August 21, 2022, 4:36am UTC](https://meta.discourse.org/t/speccing-out-a-full-page-chat-plugin/49430 "2022-08-21T04:36:36Z")

</div>

I am in the early planning stages for a chat plugin that fulfills the goals mentioned here. When the initial version of the plugin is created I will create a new topic, however this topic is a good place to think about h…

---

## [Discourse synchronisation for multiple instances](https://meta.discourse.org/t/discourse-synchronisation-for-multiple-instances/138227)

<div class="topic-metadata">

**Author:** [@Surendra-Patil](https://meta.discourse.org/u/Surendra-Patil)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 7:31am UTC](https://meta.discourse.org/t/discourse-synchronisation-for-multiple-instances/138227 "2022-08-19T07:31:35Z")

</div>

I have a master server and I will be having more than 100-200 slave instance. Slave instance can be online/offline but will be used by users. But whenever an offline instance comes online it should be able to sync with m…

---

## [Suggestion: Migrating from ActiveModelSerializers to Alba](https://meta.discourse.org/t/suggestion-migrating-from-activemodelserializers-to-alba/233266)

<div class="topic-metadata">

**Author:** [@okuramasafumi](https://meta.discourse.org/u/okuramasafumi)\
**Replies:** 6\
**Last updated:** [August 19, 2022, 4:39am UTC](https://meta.discourse.org/t/suggestion-migrating-from-activemodelserializers-to-alba/233266 "2022-08-19T04:39:20Z")

</div>

Hi, I just noticed that Discourse uses older version of ActiveModelSerializer. It was released five years ago and I don’t think it’s good. It seems that it’s planned to fork AMS but there’s a better solution. My sug…

---

## [What does Discourse use Redis for?](https://meta.discourse.org/t/what-does-discourse-use-redis-for/155042)

<div class="topic-metadata">

**Author:** [@Francis](https://meta.discourse.org/u/Francis)\
**Replies:** 5\
**Last updated:** [August 18, 2022, 7:34pm UTC](https://meta.discourse.org/t/what-does-discourse-use-redis-for/155042 "2022-08-18T19:34:14Z")

</div>

Currently my Discourse install uses a DigitalOcean managed PostgreSQL database and a DigitalOcean managed Redis instance. Is the managed Redis server necessary? Does Discourse store anything permanent in Redis or is it …

---

## [How to create Discourse posts automatically from Nolt webhook data?](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472)

<div class="topic-metadata">

**Author:** [@ramyzhang](https://meta.discourse.org/u/ramyzhang)\
**Replies:** 5\
**Last updated:** [August 18, 2022, 11:34am UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472 "2022-08-18T11:34:12Z")

</div>

Hello! First time poster, please notify me if I’m breaking any convention in my question :grin: My team is currently using Nolt for our product’s user feedback and feature requests. We would like to create a thread on o…

---

## [Running custom ruby scripts](https://meta.discourse.org/t/running-custom-ruby-scripts/236408)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 6\
**Last updated:** [August 17, 2022, 11:55am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408 "2022-08-17T11:55:47Z")

</div>

I am able to accomplish the tasks that I would like to have using the rails console. However, these tasks need to run periodically and I don’t want to type each command one by one to the rails console. How can I run a ru…

---

## [Setup Nginx as a reverse proxy for discourse forum without dockers &any containers](https://meta.discourse.org/t/setup-nginx-as-a-reverse-proxy-for-discourse-forum-without-dockers-any-containers/236409)

<div class="topic-metadata">

**Author:** [@hana1](https://meta.discourse.org/u/hana1)\
**Replies:** 1\
**Last updated:** [August 17, 2022, 11:46am UTC](https://meta.discourse.org/t/setup-nginx-as-a-reverse-proxy-for-discourse-forum-without-dockers-any-containers/236409 "2022-08-17T11:46:47Z")

</div>

Hey, I have a problem by setting up the Nginx as a reverse proxy for discourse forum without docker. At the beginning I installed discourse forum without docker and any containers, I installed it on Digital ocean drople…

---

## [Topics extracted from API do not appear in discourse forums or vice versa](https://meta.discourse.org/t/topics-extracted-from-api-do-not-appear-in-discourse-forums-or-vice-versa/236030)

<div class="topic-metadata">

**Author:** [@darivadi\_factored](https://meta.discourse.org/u/darivadi_factored)\
**Replies:** 5\
**Last updated:** [August 16, 2022, 11:43pm UTC](https://meta.discourse.org/t/topics-extracted-from-api-do-not-appear-in-discourse-forums-or-vice-versa/236030 "2022-08-16T23:43:06Z")

</div>

Hi everyone! For the company I work in, we are extracting the topics created throughout all the Discourse’s forum of the company by doing requests to the url of each category (for example like:https://{organization\_url}…

---

## [How can I add margin to content?](https://meta.discourse.org/t/how-can-i-add-margin-to-content/236353)

<div class="topic-metadata">

**Author:** [@grousx](https://meta.discourse.org/u/grousx)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 9:12pm UTC](https://meta.discourse.org/t/how-can-i-add-margin-to-content/236353 "2022-08-16T21:12:24Z")

</div>

I want margin “tick” icon a bit down. i tried margin-bottom: 3px etc. but it margin borders not the icon.

---

## [Author name plus avatar](https://meta.discourse.org/t/author-name-plus-avatar/225337)

<div class="topic-metadata">

**Author:** [@P2W](https://meta.discourse.org/u/P2W)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 4:10pm UTC](https://meta.discourse.org/t/author-name-plus-avatar/225337 "2022-08-16T16:10:23Z")

</div>

Hey all - our community has a desire to see post author’s name in addition to their avatar. Any tips on emulating this display, as seen on Sam’s Simple Theme.

---

## [From light load to heavy load with rewards plugin](https://meta.discourse.org/t/from-light-load-to-heavy-load-with-rewards-plugin/236272)

<div class="topic-metadata">

**Author:** [@Alienazk](https://meta.discourse.org/u/Alienazk)\
**Replies:** 3\
**Last updated:** [August 16, 2022, 1:54pm UTC](https://meta.discourse.org/t/from-light-load-to-heavy-load-with-rewards-plugin/236272 "2022-08-16T13:54:31Z")

</div>

Hello！ Our server’s cpu usage has gone from 50% to 90% since we installed a plugin. I am new to ruby on rails/postgresql. I’m wondering if the plugin’s settings are causing the cpu usage to spike. It is just a points s…

---

## [Issue with Api](https://meta.discourse.org/t/issue-with-api/236297)

<div class="topic-metadata">

**Author:** [@Raj\_Kumar\_Sharma](https://meta.discourse.org/u/Raj_Kumar_Sharma)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 11:54am UTC](https://meta.discourse.org/t/issue-with-api/236297 "2022-08-16T11:54:39Z")

</div>

I am facing issue with api request and cors errors when hitting api can you suggest me the right source to follow.

---

## [Why the topic item visited class doesn't update?](https://meta.discourse.org/t/why-the-topic-item-visited-class-doesnt-update/236276)

<div class="topic-metadata">

**Author:** [@WJsirius](https://meta.discourse.org/u/WJsirius)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 8:43am UTC](https://meta.discourse.org/t/why-the-topic-item-visited-class-doesnt-update/236276 "2022-08-16T08:43:12Z")

</div>

I want to change the visited topics on topic-item-list into lower opacity, and I use the css code below: .topic-list-item.visited \>\*{ opacity: 0.7; } Then I found when I visited a topic,the topic didn’t add the visit…

---

## [How to use TagChooser in a theme component/plugin](https://meta.discourse.org/t/how-to-use-tagchooser-in-a-theme-component-plugin/236112)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [August 15, 2022, 7:24pm UTC](https://meta.discourse.org/t/how-to-use-tagchooser-in-a-theme-component-plugin/236112 "2022-08-15T19:24:41Z")

</div>

I have added a user\_custom\_field that holds a array of tags. I want to add a TagChooser to the preferences page. So I put some stuff in a plugin out let and it displays the stuff that’s in the user preferences, so I hav…

---

## [Generating a login email via API](https://meta.discourse.org/t/generating-a-login-email-via-api/235737)

<div class="topic-metadata">

**Author:** [@davidevans](https://meta.discourse.org/u/davidevans)\
**Replies:** 4\
**Last updated:** [August 11, 2022, 8:58am UTC](https://meta.discourse.org/t/generating-a-login-email-via-api/235737 "2022-08-11T08:58:01Z")

</div>

I’m looking to trigger the sending of a passwordless login email to a user from the API (that they would get if they hit ‘login by email’ themselves), and it doesn’t seem to be possible. I’ve used the ‘API reverse engine…

---

## [Make anonymous posts hidden/moderation by default?](https://meta.discourse.org/t/make-anonymous-posts-hidden-moderation-by-default/225080)

<div class="topic-metadata">

**Author:** [@kirupa](https://meta.discourse.org/u/kirupa)\
**Replies:** 4\
**Last updated:** [August 10, 2022, 2:49pm UTC](https://meta.discourse.org/t/make-anonymous-posts-hidden-moderation-by-default/225080 "2022-08-10T14:49:40Z")

</div>

Hi everyone - is there a way to make posts by anonymous users appear hidden by default or go into the moderation queue? Thanks, Kirupa

---

## [How to display FullName on Topics in Fakebook theme](https://meta.discourse.org/t/how-to-display-fullname-on-topics-in-fakebook-theme/235580)

<div class="topic-metadata">

**Author:** [@Pandiyan](https://meta.discourse.org/u/Pandiyan)\
**Replies:** 5\
**Last updated:** [August 10, 2022, 4:28am UTC](https://meta.discourse.org/t/how-to-display-fullname-on-topics-in-fakebook-theme/235580 "2022-08-10T04:28:18Z")

</div>

Can someone tell me how to display FullName on topics specifically in ‘…/latest’ page. I have disabled ’ prioritize username in ux ’ site settings. I have enabled ’ display name on posts ’ site settings. Even after do…

---

## [Updating Data in Plugin with JS](https://meta.discourse.org/t/updating-data-in-plugin-with-js/235652)

<div class="topic-metadata">

**Author:** [@Alshain](https://meta.discourse.org/u/Alshain)\
**Replies:** 2\
**Last updated:** [August 10, 2022, 3:59am UTC](https://meta.discourse.org/t/updating-data-in-plugin-with-js/235652 "2022-08-10T03:59:50Z")

</div>

Hello friends, I’m trying to write a plugin in Discourse but I couldn’t update the data. There is no problem with adding and deleting data. It does this successfully. I’ve been struggling for hours, but only this part …

---

## [Creating a User - Tag relation plugin](https://meta.discourse.org/t/creating-a-user-tag-relation-plugin/235208)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 8\
**Last updated:** [August 8, 2022, 10:02am UTC](https://meta.discourse.org/t/creating-a-user-tag-relation-plugin/235208 "2022-08-08T10:02:19Z")

</div>

Hello, I am currently working on a specific plugin but couldn’t figure where to start yet (I read the introductory material here and installed some simple plugins and played with their source a bit). The setup: I have a…

---

## [Custom Fields for Groups?](https://meta.discourse.org/t/custom-fields-for-groups/153580)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 5\
**Last updated:** [August 6, 2022, 2:03pm UTC](https://meta.discourse.org/t/custom-fields-for-groups/153580 "2022-08-06T14:03:13Z")

</div>

Is it possible to create custom fields for Groups, just like we can add (and retrieve) custom fields for Users? I have seen mention of this as a request here and there (like here). If it’s not built into Discourse righ…

---

## [Use discourse for SSO in a non-web app?](https://meta.discourse.org/t/use-discourse-for-sso-in-a-non-web-app/40584)

<div class="topic-metadata">

**Author:** [@chris\_beck](https://meta.discourse.org/u/chris_beck)\
**Replies:** 12\
**Last updated:** [August 5, 2022, 8:15pm UTC](https://meta.discourse.org/t/use-discourse-for-sso-in-a-non-web-app/40584 "2022-08-05T20:15:51Z")

</div>

I am building a desktop application (not a web app) which includes a networking component, and I would like to be able to have a discourse forum associated to it and use the same authentication credentials for the applic…

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

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