# Development

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

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

**Page:** 15

---

## [What about indexNow?](https://meta.discourse.org/t/what-about-indexnow/210626)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 9:00am UTC](https://meta.discourse.org/t/what-about-indexnow/210626 "2025-03-06T09:00:29Z")

</div>

Maybe this one’s not a bad idea?

---

## [How to raise an error from a PostRevisor block and have it presented to the user?](https://meta.discourse.org/t/how-to-raise-an-error-from-a-postrevisor-block-and-have-it-presented-to-the-user/347052)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 7\
**Last updated:** [March 5, 2025, 4:48pm UTC](https://meta.discourse.org/t/how-to-raise-an-error-from-a-postrevisor-block-and-have-it-presented-to-the-user/347052 "2025-03-05T16:48:59Z")

</div>

Here’s a bit of code where I want to add some additional validation (simplified code and use case) # prevent non-staff from changing category on a topic PostRevisor.track\_topic\_field(:category\_id) do |tc, category\_id…

---

## [Pulling user auth0 sub from OAuth2.0 plugin](https://meta.discourse.org/t/pulling-user-auth0-sub-from-oauth2-0-plugin/355903)

<div class="topic-metadata">

**Author:** [@jafab](https://meta.discourse.org/u/jafab)\
**Replies:** 0\
**Last updated:** [March 5, 2025, 6:15pm UTC](https://meta.discourse.org/t/pulling-user-auth0-sub-from-oauth2-0-plugin/355903 "2025-03-05T18:15:34Z")

</div>

Hello! I am trying to make an api call to an external website that requires the discourse user’s auth0 sub as a parameter. I currently have local signup disabled (so all discourse users are logged in through auth0). OAut…

---

## [Creating a Whitelabel Discourse Hub App with Working Notifications for Internally Hosted Discourse](https://meta.discourse.org/t/creating-a-whitelabel-discourse-hub-app-with-working-notifications-for-internally-hosted-discourse/274782)

<div class="topic-metadata">

**Author:** [@dipendra\_sharma](https://meta.discourse.org/u/dipendra_sharma)\
**Replies:** 1\
**Last updated:** [August 11, 2023, 9:52am UTC](https://meta.discourse.org/t/creating-a-whitelabel-discourse-hub-app-with-working-notifications-for-internally-hosted-discourse/274782 "2023-08-11T09:52:47Z")

</div>

Hello community, I’ve recently embarked on a project to create a mobile application specifically tailored for our internally hosted Discourse forum. To do this, I forked the Discourse open-source mobile app with the aim…

---

## [Dev Container memory usage really high?](https://meta.discourse.org/t/dev-container-memory-usage-really-high/355701)

<div class="topic-metadata">

**Author:** [@dsims](https://meta.discourse.org/u/dsims)\
**Replies:** 4\
**Last updated:** [March 5, 2025, 3:56am UTC](https://meta.discourse.org/t/dev-container-memory-usage-really-high/355701 "2025-03-05T03:56:59Z")

</div>

I’m on a M2 Macbook Pro using the Dev Container setup. Memory usage seems really high, is this typical? I see about 4GB memory usage before running anything, then needing about 10GB to get through a successful build and …

---

## [CSS Modification For Correct Banner Alignment](https://meta.discourse.org/t/css-modification-for-correct-banner-alignment/355612)

<div class="topic-metadata">

**Author:** [@Deenius](https://meta.discourse.org/u/Deenius)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 1:35pm UTC](https://meta.discourse.org/t/css-modification-for-correct-banner-alignment/355612 "2025-03-04T13:35:24Z")

</div>

Hey, guys. Is there anyone who can help me with CSS modification? I’m a beginner at this and don’t know what to do. I made my first banner exactly according to the instructions (House Ad Templates). However, the banner…

---

## [How can I update the topics list after making a change?](https://meta.discourse.org/t/how-can-i-update-the-topics-list-after-making-a-change/354537)

<div class="topic-metadata">

**Author:** [@bitmage](https://meta.discourse.org/u/bitmage)\
**Replies:** 3\
**Last updated:** [March 1, 2025, 1:40am UTC](https://meta.discourse.org/t/how-can-i-update-the-topics-list-after-making-a-change/354537 "2025-03-01T01:40:24Z")

</div>

I have implemented a custom button on the Post action menu that “boots” the post out of the current topic thread. It is an action available to the topic author which essentially performs the move operation, but with les…

---

## [Discourse Gamification Plugin in the Header](https://meta.discourse.org/t/discourse-gamification-plugin-in-the-header/354769)

<div class="topic-metadata">

**Author:** [@TRgala\_Murat](https://meta.discourse.org/u/TRgala_Murat)\
**Replies:** 18\
**Last updated:** [February 28, 2025, 9:06am UTC](https://meta.discourse.org/t/discourse-gamification-plugin-in-the-header/354769 "2025-02-28T09:06:54Z")

</div>

Hello, I’m trying to do something. I want to display the user points from the Discourse Gamification plugin at the top of the site. For example, if a user named Adam has 700 points, how can I show this in the header sect…

---

## [MessageBus - How to setup Messagebus using Dart-Flutter](https://meta.discourse.org/t/messagebus-how-to-setup-messagebus-using-dart-flutter/208649)

<div class="topic-metadata">

**Author:** [@Sembauke](https://meta.discourse.org/u/Sembauke)\
**Replies:** 3\
**Last updated:** [February 27, 2025, 12:04pm UTC](https://meta.discourse.org/t/messagebus-how-to-setup-messagebus-using-dart-flutter/208649 "2025-02-27T12:04:49Z")

</div>

Hey Everyone, I am making a mobile application that uses the Discourse to GET and POST data. At the moment, I am making a request every 30 seconds to see if there are new posts on a topic. This seems like it could pote…

---

## [Merge request for Netcore Cloud ESP related changes](https://meta.discourse.org/t/merge-request-for-netcore-cloud-esp-related-changes/352945)

<div class="topic-metadata">

**Author:** [@Ganesh\_Rai](https://meta.discourse.org/u/Ganesh_Rai)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 12:40am UTC](https://meta.discourse.org/t/merge-request-for-netcore-cloud-esp-related-changes/352945 "2025-02-27T00:40:07Z")

</div>

I have created a pull request (https://github.com/discourse/discourse/pull/31382) for Bounce and Dropped email webhook based sync back to Discourse for users who use Netcore Cloud ESP. I have signed the CLA. Is there a…

---

## [Plugin rake task running multiple times - what are we missing?](https://meta.discourse.org/t/plugin-rake-task-running-multiple-times-what-are-we-missing/210077)

<div class="topic-metadata">

**Author:** [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Replies:** 7\
**Last updated:** [February 26, 2025, 6:34pm UTC](https://meta.discourse.org/t/plugin-rake-task-running-multiple-times-what-are-we-missing/210077 "2025-02-26T18:34:55Z")

</div>

I’m adding a rake task to the docker\_manager plugin but I’m finding that the task is running twice when I invoke it. In its simplest form, I can add testing.rake to lib/tasks with the following contents: # frozen\_string…

---

## [Access tracked variables in VanillaJS?](https://meta.discourse.org/t/access-tracked-variables-in-vanillajs/354313)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Replies:** 7\
**Last updated:** [February 25, 2025, 5:41pm UTC](https://meta.discourse.org/t/access-tracked-variables-in-vanillajs/354313 "2025-02-25T17:41:17Z")

</div>

I have this piece of code: let iFrame = document.getElementById('oc-editor'); iFrame.addEventListener('load', function() { iFrame.contentWindow.postMessage({ eventType: 'populateCode', language: "{{this.codeLa…

---

## [How to display Avatar Flair on avatars in the topic list and leaderboard pages?](https://meta.discourse.org/t/how-to-display-avatar-flair-on-avatars-in-the-topic-list-and-leaderboard-pages/354321)

<div class="topic-metadata">

**Author:** [@copymonopoly](https://meta.discourse.org/u/copymonopoly)\
**Replies:** 0\
**Last updated:** [February 25, 2025, 6:22am UTC](https://meta.discourse.org/t/how-to-display-avatar-flair-on-avatars-in-the-topic-list-and-leaderboard-pages/354321 "2025-02-25T06:22:26Z")

</div>

I am a beginner,can it be achieved via CSS or HTML?

---

## [Connecting WP Discourse to a local Discourse Instance running a specific version](https://meta.discourse.org/t/connecting-wp-discourse-to-a-local-discourse-instance-running-a-specific-version/353761)

<div class="topic-metadata">

**Author:** [@Gregory\_Bartholomew](https://meta.discourse.org/u/Gregory_Bartholomew)\
**Replies:** 8\
**Last updated:** [February 24, 2025, 4:02pm UTC](https://meta.discourse.org/t/connecting-wp-discourse-to-a-local-discourse-instance-running-a-specific-version/353761 "2025-02-24T16:02:38Z")

</div>

I just tried installing this plugin on WordPress 6.7.2 with php-fpm-8.3.17-1.fc41.x86\_64, but it doesn’t work. I get the following error in the log when I click “Save Options”. \[2025-02-21 17:15:13\] connection.INFO: che…

---

## [How to prevent the updating of specific user fields](https://meta.discourse.org/t/how-to-prevent-the-updating-of-specific-user-fields/353627)

<div class="topic-metadata">

**Author:** [@IJK\_Rick](https://meta.discourse.org/u/IJK_Rick)\
**Replies:** 3\
**Last updated:** [February 24, 2025, 9:27am UTC](https://meta.discourse.org/t/how-to-prevent-the-updating-of-specific-user-fields/353627 "2025-02-24T09:27:58Z")

</div>

There are certain user fields that I have hidden using CSS. However they could still be updated using rails console, api or dev tools. How do I ensure that nobody can update these fields (for example website or locatio…

---

## [Reddit-ish theme right sidebar on topics](https://meta.discourse.org/t/reddit-ish-theme-right-sidebar-on-topics/353883)

<div class="topic-metadata">

**Author:** [@Damian\_Boon](https://meta.discourse.org/u/Damian_Boon)\
**Replies:** 4\
**Last updated:** [February 23, 2025, 12:39pm UTC](https://meta.discourse.org/t/reddit-ish-theme-right-sidebar-on-topics/353883 "2025-02-23T12:39:43Z")

</div>

Anyone that uses the awesome Reddit-ish theme have you been able to add a right hand sidebar to topics? If so how did you accomplish this.

---

## [Glimmer Components: what's the limit here?](https://meta.discourse.org/t/glimmer-components-whats-the-limit-here/353618)

<div class="topic-metadata">

**Author:** [@ddsgad](https://meta.discourse.org/u/ddsgad)\
**Replies:** 9\
**Last updated:** [February 22, 2025, 5:42pm UTC](https://meta.discourse.org/t/glimmer-components-whats-the-limit-here/353618 "2025-02-22T17:42:57Z")

</div>

Because of a suggestion on another topic, I just started learning glimmer components from the ember docs. Actually, they are really a joy to use and better than building in React, in my opinion. I’m surprised Ember is no…

---

## [Proper place to propose a permissions predicate?](https://meta.discourse.org/t/proper-place-to-propose-a-permissions-predicate/352637)

<div class="topic-metadata">

**Author:** [@mdoggydog](https://meta.discourse.org/u/mdoggydog)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 11:31pm UTC](https://meta.discourse.org/t/proper-place-to-propose-a-permissions-predicate/352637 "2025-02-21T23:31:45Z")

</div>

In the interest of proposing a solution for Restrict exposure of full name to certain groups, I would like to define a (server-side) permssions predicate that answers the question Based on the current user-scope/contex…

---

## [Forwarding the \`scope:\` down a tree of serializers: just do it, or not?](https://meta.discourse.org/t/forwarding-the-scope-down-a-tree-of-serializers-just-do-it-or-not/353691)

<div class="topic-metadata">

**Author:** [@mdoggydog](https://meta.discourse.org/u/mdoggydog)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 9:02pm UTC](https://meta.discourse.org/t/forwarding-the-scope-down-a-tree-of-serializers-just-do-it-or-not/353691 "2025-02-21T21:02:56Z")

</div>

Serializers can be provided with a scope: parameter intended to provide the permissions-context for the serializer. In the Discourse code, the provided scope is a Guardian, and it looks like every serializer is intended…

---

## [How to get around DOMContentLoaded for navigation?](https://meta.discourse.org/t/how-to-get-around-domcontentloaded-for-navigation/351748)

<div class="topic-metadata">

**Author:** [@ddsgad](https://meta.discourse.org/u/ddsgad)\
**Replies:** 14\
**Last updated:** [February 21, 2025, 3:16pm UTC](https://meta.discourse.org/t/how-to-get-around-domcontentloaded-for-navigation/351748 "2025-02-21T15:16:57Z")

</div>

We have a js function that runs on DOMContentLoaded, document.addEventListener(“DOMContentLoaded”, OURFUNCTION). It works fine when you refresh the browser, but never shows when you navigate the site. I presume that’s b…

---

## [How to use the API to set a timer for a topic?](https://meta.discourse.org/t/how-to-use-the-api-to-set-a-timer-for-a-topic/353494)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 6:10am UTC](https://meta.discourse.org/t/how-to-use-the-api-to-set-a-timer-for-a-topic/353494 "2025-02-21T06:10:01Z")

</div>

Looking here: Discourse API Docs the request sample shows: https://{url}/t/{id}/timer.json { "time": "", "status\_type": "string", "based\_on\_last\_post": true, "category\_id": 0 } But this does not seem consisten…

---

## [Is this still the solution for checking for dark mode?](https://meta.discourse.org/t/is-this-still-the-solution-for-checking-for-dark-mode/353354)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [February 20, 2025, 6:46pm UTC](https://meta.discourse.org/t/is-this-still-the-solution-for-checking-for-dark-mode/353354 "2025-02-20T18:46:26Z")

</div>

Continuing the discussion from No specific class for dark mode: I’ve got a theme component that’s changing the site logo based on what category the user is in and adding logos to the categories in the sidebar, and now …

---

## [Guardian.anonymous? versus Guardian.is\_anonymous?](https://meta.discourse.org/t/guardian-anonymous-versus-guardian-is-anonymous/353209)

<div class="topic-metadata">

**Author:** [@mdoggydog](https://meta.discourse.org/u/mdoggydog)\
**Replies:** 2\
**Last updated:** [February 20, 2025, 5:22am UTC](https://meta.discourse.org/t/guardian-anonymous-versus-guardian-is-anonymous/353209 "2025-02-20T05:22:11Z")

</div>

Guardian has two verrrry similarly named predicates: anonymous? and is\_anonymous? What is the difference? :philosoraptor: :grimacing: :zipper\_mouth\_face:

---

## [Can I ascertain if something is a touch device](https://meta.discourse.org/t/can-i-ascertain-if-something-is-a-touch-device/353076)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 4\
**Last updated:** [February 19, 2025, 12:34pm UTC](https://meta.discourse.org/t/can-i-ascertain-if-something-is-a-touch-device/353076 "2025-02-19T12:34:39Z")

</div>

… in Javascript? And I don’t mean mobile, I mean any device, e.g. touch device like a tablet, where hover doesn’t make sense. Or am I forced to use CSS?

---

## [Why not fallback to inline-onebox if full-onebox fails?](https://meta.discourse.org/t/why-not-fallback-to-inline-onebox-if-full-onebox-fails/352907)

<div class="topic-metadata">

**Author:** [@dsims](https://meta.discourse.org/u/dsims)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 3:25pm UTC](https://meta.discourse.org/t/why-not-fallback-to-inline-onebox-if-full-onebox-fails/352907 "2025-02-18T15:25:59Z")

</div>

Say I have a link to a page that only has a title metatag. Currently if that url is typed inline it gets converted to the page title, but if it happens to be on it’s own line it stays as a raw url because it gets rejecte…

---

## [How to Integrate a Custom Plugin in discourse UI](https://meta.discourse.org/t/how-to-integrate-a-custom-plugin-in-discourse-ui/351629)

<div class="topic-metadata">

**Author:** [@Elizeo\_Rocha](https://meta.discourse.org/u/Elizeo_Rocha)\
**Replies:** 7\
**Last updated:** [February 15, 2025, 2:43am UTC](https://meta.discourse.org/t/how-to-integrate-a-custom-plugin-in-discourse-ui/351629 "2025-02-15T02:43:22Z")

</div>

I’m developing a new plugin for my Discourse instance. While the plugin itself is working fine, I’m having difficulty integrating it into the Discourse UI. I’ve reviewed the available documentation, but some parts are st…

---

## [Rebuild the forum using code?](https://meta.discourse.org/t/rebuild-the-forum-using-code/352173)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Replies:** 9\
**Last updated:** [February 15, 2025, 2:37am UTC](https://meta.discourse.org/t/rebuild-the-forum-using-code/352173 "2025-02-15T02:37:34Z")

</div>

I had a few random ideas that popped into my head, and one of them was a plugin to install plugins. That requires a forum rebuild. Is there a way to rebuild using Ruby? I really don’t want to try: p \`cd ../../\` p \`. /la…

---

## [helper.RenderGlimmer before/after positional element](https://meta.discourse.org/t/helper-renderglimmer-before-after-positional-element/352349)

<div class="topic-metadata">

**Author:** [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 7:20pm UTC](https://meta.discourse.org/t/helper-renderglimmer-before-after-positional-element/352349 "2025-02-14T19:20:16Z")

</div>

With the DecoratedHtml change (lovely change, thanks for that!), I played around decorateCookedElement, and it seems to append into the positional element. Is there a way to insert it before or after the positional elem…

---

## [Modify TopicExcerpt template?](https://meta.discourse.org/t/modify-topicexcerpt-template/352136)

<div class="topic-metadata">

**Author:** [@dsims](https://meta.discourse.org/u/dsims)\
**Replies:** 11\
**Last updated:** [February 14, 2025, 2:39pm UTC](https://meta.discourse.org/t/modify-topicexcerpt-template/352136 "2025-02-14T14:39:47Z")

</div>

I want to add the topic-creator avatar to topic-list excerpts, but there doesn’t seem to be anyway to modify the Topic Excerpt. TopicExcerpt: I think the only option is to hide .topic-excerpt with CSS and use my own c…

---

## [How can I run a Ruby script in a daily cronjob?](https://meta.discourse.org/t/how-can-i-run-a-ruby-script-in-a-daily-cronjob/352129)

<div class="topic-metadata">

**Author:** [@Xavier\_Garzon](https://meta.discourse.org/u/Xavier_Garzon)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 7:50pm UTC](https://meta.discourse.org/t/how-can-i-run-a-ruby-script-in-a-daily-cronjob/352129 "2025-02-13T19:50:20Z")

</div>

I need to run a simple script daily with specific parameters like this. When I run it manually: bundle exec rails runner auto\_send\_messages\_script.rb --messages-limit 3 --sleep-timer 5 --marker welcome\_back\_campaign\_202…

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

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