# Development

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

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

**Page:** 50

---

## [Mini\_scheduler execute Job every monday at 4am UTC](https://meta.discourse.org/t/mini-scheduler-execute-job-every-monday-at-4am-utc/261277)

<div class="topic-metadata">

**Author:** [@AhmedLoud](https://meta.discourse.org/u/AhmedLoud)\
**Replies:** 1\
**Last updated:** [April 11, 2023, 6:03am UTC](https://meta.discourse.org/t/mini-scheduler-execute-job-every-monday-at-4am-utc/261277 "2023-04-11T06:03:23Z")

</div>

I am wondering how to use the mini\_scheduler gem to create a Job that will run every Monday at a specific time. I found the option every 1.week on the Discourse code base but I am not sure when this will be triggered.

---

## [Having issue accessing the Discourse APIs from react app](https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311)

<div class="topic-metadata">

**Author:** [@fahadaslam98](https://meta.discourse.org/u/fahadaslam98)\
**Replies:** 6\
**Last updated:** [April 10, 2023, 10:35pm UTC](https://meta.discourse.org/t/having-issue-accessing-the-discourse-apis-from-react-app/259311 "2023-04-10T22:35:21Z")

</div>

Access to fetch at ‘https://boostfloral.discourse.group/categories.json?’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Request header field API-key is not allowed by Access-Control-Allow-Headers i…

---

## [Accidentally installed ruby-railties](https://meta.discourse.org/t/accidentally-installed-ruby-railties/261247)

<div class="topic-metadata">

**Author:** [@AtlasGames](https://meta.discourse.org/u/AtlasGames)\
**Replies:** 1\
**Last updated:** [April 10, 2023, 10:23pm UTC](https://meta.discourse.org/t/accidentally-installed-ruby-railties/261247 "2023-04-10T22:23:20Z")

</div>

I messed up. I was trying to manually change a user’s password, and ended up installing ruby-railties instead. I need someone more experienced than me to tell me if I should just leave it alone, or if it’s a big problem …

---

## [Is it possible to implement like and dislike functionality at the topic level using the topic-list-item component in Discourse?](https://meta.discourse.org/t/is-it-possible-to-implement-like-and-dislike-functionality-at-the-topic-level-using-the-topic-list-item-component-in-discourse/261213)

<div class="topic-metadata">

**Author:** [@sevadev-ramchandra](https://meta.discourse.org/u/sevadev-ramchandra)\
**Replies:** 1\
**Last updated:** [April 10, 2023, 6:36pm UTC](https://meta.discourse.org/t/is-it-possible-to-implement-like-and-dislike-functionality-at-the-topic-level-using-the-topic-list-item-component-in-discourse/261213 "2023-04-10T18:36:54Z")

</div>

I have modified the topic-list-item component in Discourse to include the ability to like topics. However, I am struggling to implement the toggleLike functionality and also find that the liked property of the topic obje…

---

## [Change 'reply-to-tab' click behaviour (embedded posts top)](https://meta.discourse.org/t/change-reply-to-tab-click-behaviour-embedded-posts-top/261155)

<div class="topic-metadata">

**Author:** [@Don](https://meta.discourse.org/u/Don)\
**Replies:** 0\
**Last updated:** [April 10, 2023, 7:38am UTC](https://meta.discourse.org/t/change-reply-to-tab-click-behaviour-embedded-posts-top/261155 "2023-04-10T07:38:03Z")

</div>

Hello, I am working on a theme component and I would like to change the .reply-to-tab click behaviour on desktop. It would works just like on mobile. So not opening the post above the post but jump to the post. Now I …

---

## [Plugin tester without installing Discourse](https://meta.discourse.org/t/plugin-tester-without-installing-discourse/127960)

<div class="topic-metadata">

**Author:** [@Zususu](https://meta.discourse.org/u/Zususu)\
**Replies:** 3\
**Last updated:** [April 9, 2023, 11:45pm UTC](https://meta.discourse.org/t/plugin-tester-without-installing-discourse/127960 "2023-04-09T23:45:52Z")

</div>

Hi all, Is there a way to test a plugin without installing Discourse (similar to the theme-creator platform)? Thank you.

---

## [Anything like api.decoreateCooked() for topics displayed via Page Publishing?](https://meta.discourse.org/t/anything-like-api-decoreatecooked-for-topics-displayed-via-page-publishing/261055)

<div class="topic-metadata">

**Author:** [@craigconstantine](https://meta.discourse.org/u/craigconstantine)\
**Replies:** 4\
**Last updated:** [April 9, 2023, 8:22am UTC](https://meta.discourse.org/t/anything-like-api-decoreatecooked-for-topics-displayed-via-page-publishing/261055 "2023-04-09T08:22:22Z")

</div>

Is there anything analogous to api.decorateCooked() for Page Publishing display of a topic? I have some j/s in a theme component which is called by using api.decoreateCooked(). Works great. But when I view the topic via…

---

## [CORS error accessing API from javascript application](https://meta.discourse.org/t/cors-error-accessing-api-from-javascript-application/128785)

<div class="topic-metadata">

**Author:** [@tdekoekkoek](https://meta.discourse.org/u/tdekoekkoek)\
**Replies:** 11\
**Last updated:** [April 9, 2023, 1:11am UTC](https://meta.discourse.org/t/cors-error-accessing-api-from-javascript-application/128785 "2023-04-09T01:11:55Z")

</div>

This would be a good answer for me except that I cannot get header based auth to work so I am attempting to do it with forms and am also getting CSRF. Any solution? I am trying to create a new topic using the API.

---

## [Additional information beside the avatar](https://meta.discourse.org/t/additional-information-beside-the-avatar/127930)

<div class="topic-metadata">

**Author:** [@Zususu](https://meta.discourse.org/u/Zususu)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 4:48am UTC](https://meta.discourse.org/t/additional-information-beside-the-avatar/127930 "2019-09-08T04:48:12Z")

</div>

Hi all, I was wondering if it is possible to somehow add information beside the avatar every time user posts something. The information could be the amount of likes, amount of opened topics, amount of posts and so on. …

---

## [Outputting a theme setting without stripping the html](https://meta.discourse.org/t/outputting-a-theme-setting-without-stripping-the-html/260751)

<div class="topic-metadata">

**Author:** [@Magnetidog](https://meta.discourse.org/u/Magnetidog)\
**Replies:** 2\
**Last updated:** [April 6, 2023, 3:47pm UTC](https://meta.discourse.org/t/outputting-a-theme-setting-without-stripping-the-html/260751 "2023-04-06T15:47:37Z")

</div>

Hello folks, I am trying to output a theme setting in my theme, and this setting contains some html. Anyhow, the following is not working: {{html-safe (theme-setting "my\_text")}} What am I doing wrong? Thanks.

---

## [How to learn more about Discourse back-end?](https://meta.discourse.org/t/how-to-learn-more-about-discourse-back-end/260765)

<div class="topic-metadata">

**Author:** [@satonotdead](https://meta.discourse.org/u/satonotdead)\
**Replies:** 3\
**Last updated:** [April 6, 2023, 2:36pm UTC](https://meta.discourse.org/t/how-to-learn-more-about-discourse-back-end/260765 "2023-04-06T14:36:04Z")

</div>

I searched and I found a lot of old stuff because Discourse was heavy updated. I liked to read the work leading your sucess. I’m not a dev but I paid a lot of ‘devs’ that work 1/10 as I can (of course, not on Discours…

---

## [Only some elements work with blur on some devices](https://meta.discourse.org/t/only-some-elements-work-with-blur-on-some-devices/260572)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Replies:** 0\
**Last updated:** [April 4, 2023, 6:12pm UTC](https://meta.discourse.org/t/only-some-elements-work-with-blur-on-some-devices/260572 "2023-04-04T18:12:18Z")

</div>

Hello, As of recently, I’ve started to have issues with blurring things on Chrome and Mobile. For example on mobile, the background and topbar are not blurred. However, random dropdowns are. The same goes for som…

---

## [Sets reply\_to when creating a message through the API?](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 13\
**Last updated:** [April 4, 2023, 4:05pm UTC](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903 "2023-04-04T16:05:08Z")

</div>

Hi. Is there a way to specify the message ID to which a new message responds when we create this last one through Discourse API?

---

## [Manual Onebox creation for websites that don't display correctly](https://meta.discourse.org/t/manual-onebox-creation-for-websites-that-dont-display-correctly/260528)

<div class="topic-metadata">

**Author:** [@UnitedFreedom](https://meta.discourse.org/u/UnitedFreedom)\
**Replies:** 0\
**Last updated:** [April 4, 2023, 12:26pm UTC](https://meta.discourse.org/t/manual-onebox-creation-for-websites-that-dont-display-correctly/260528 "2023-04-04T12:26:53Z")

</div>

I absolutely love the Onebox feature, but unfortunately not all website are configured correctly to feed the data to Onebox. Adding multiple links to a topic can look messy when the formats are not uniform. Here you will…

---

## [Connecting custom user fields to plugins/theme components](https://meta.discourse.org/t/connecting-custom-user-fields-to-plugins-theme-components/260401)

<div class="topic-metadata">

**Author:** [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Replies:** 3\
**Last updated:** [April 3, 2023, 4:32pm UTC](https://meta.discourse.org/t/connecting-custom-user-fields-to-plugins-theme-components/260401 "2023-04-03T16:32:16Z")

</div>

I was wondering if there’s currently a way (or if not, how one could create a way) to allow plugins and theme components to easily access custom user fields. First, I installed the Discourse Chatbot 🤖 - #239 and wanted …

---

## [Can I change the URL of the main logo?](https://meta.discourse.org/t/can-i-change-the-url-of-the-main-logo/186127)

<div class="topic-metadata">

**Author:** [@rodypl](https://meta.discourse.org/u/rodypl)\
**Replies:** 6\
**Last updated:** [April 3, 2023, 3:15pm UTC](https://meta.discourse.org/t/can-i-change-the-url-of-the-main-logo/186127 "2023-04-03T15:15:25Z")

</div>

For example, let’s say I wanted the logo to point to forum.example.com/latest instead of forum.example.com, how would I do that? Is that something I can change easily without needing a developer? Discourse is hosting my …

---

## [Display a value from an external webservice in the header](https://meta.discourse.org/t/display-a-value-from-an-external-webservice-in-the-header/260260)

<div class="topic-metadata">

**Author:** [@RhysGoodwin](https://meta.discourse.org/u/RhysGoodwin)\
**Replies:** 3\
**Last updated:** [April 2, 2023, 9:43pm UTC](https://meta.discourse.org/t/display-a-value-from-an-external-webservice-in-the-header/260260 "2023-04-02T21:43:22Z")

</div>

Kia ora folks, Just a need a (hopefully) quick pointer in the right direction. I want to retrieve a value (json) from an external URL and display it in the header. The webservice is public and just returns a single val…

---

## [Theme component: How to get a user's groups (not current user)?](https://meta.discourse.org/t/theme-component-how-to-get-a-users-groups-not-current-user/260223)

<div class="topic-metadata">

**Author:** [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Replies:** 1\
**Last updated:** [April 1, 2023, 11:26pm UTC](https://meta.discourse.org/t/theme-component-how-to-get-a-users-groups-not-current-user/260223 "2023-04-01T23:26:17Z")

</div>

Hi, I’m working on a theme component to restrict users’ status to groups. I have difficulty getting a user’s group data (ID) in the following contexts: user’s card chat messages. Requesting \<username\>.json is out of…

---

## [Ruby find array of users ID](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469)

<div class="topic-metadata">

**Author:** [@bXunter](https://meta.discourse.org/u/bXunter)\
**Replies:** 6\
**Last updated:** [April 1, 2023, 6:20pm UTC](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469 "2023-04-01T18:20:43Z")

</div>

Hello, I need this command: u = User.find\_by\_id('150) u.password='some\_password' u.save! And this is working just fine for one ID/user, the thing is that I have around 1500 user (I have list/array of theirs ID’s) an…

---

## [Categories\_and\_latest json and subcategory\_ids](https://meta.discourse.org/t/categories-and-latest-json-and-subcategory-ids/260220)

<div class="topic-metadata">

**Author:** [@markhunte](https://meta.discourse.org/u/markhunte)\
**Replies:** 2\
**Last updated:** [April 1, 2023, 5:40pm UTC](https://meta.discourse.org/t/categories-and-latest-json-and-subcategory-ids/260220 "2023-04-01T17:40:30Z")

</div>

Hi, I am building a Mac app that will show a notification of any new post in Discourse Forums. It show the latest posts, with subject, user etc. And will open the post in the Macs browser when clicked. I am using req…

---

## [Download Remote Images with Referer (plugin possible?)](https://meta.discourse.org/t/download-remote-images-with-referer-plugin-possible/260027)

<div class="topic-metadata">

**Author:** [@shyguy](https://meta.discourse.org/u/shyguy)\
**Replies:** 13\
**Last updated:** [April 1, 2023, 8:20am UTC](https://meta.discourse.org/t/download-remote-images-with-referer-plugin-possible/260027 "2023-04-01T08:20:38Z")

</div>

i’m working on a migration to discourse, and i know about SiteSetting.download\_remote\_images\_to\_local. it’s awesome. however, when i (slow) rebake to download them all, i’m noticing that Photobucket serves a watermarked…

---

## [Add Onebox integration; show thumbnail with topic-thumbnails plugin](https://meta.discourse.org/t/add-onebox-integration-show-thumbnail-with-topic-thumbnails-plugin/254445)

<div class="topic-metadata">

**Author:** [@kluvin](https://meta.discourse.org/u/kluvin)\
**Replies:** 1\
**Last updated:** [March 31, 2023, 6:44pm UTC](https://meta.discourse.org/t/add-onebox-integration-show-thumbnail-with-topic-thumbnails-plugin/254445 "2023-03-31T18:44:05Z")

</div>

We are launching a for our product, which already functions with OneBox after allowing Iframes from us. Our oembed endpoint, and an example of the response is here Now, our concern is first and foremost that we would l…

---

## [Thumbnails are missing for our external embeds when using topic-thumbnails](https://meta.discourse.org/t/thumbnails-are-missing-for-our-external-embeds-when-using-topic-thumbnails/255452)

<div class="topic-metadata">

**Author:** [@kluvin](https://meta.discourse.org/u/kluvin)\
**Replies:** 10\
**Last updated:** [March 31, 2023, 6:42pm UTC](https://meta.discourse.org/t/thumbnails-are-missing-for-our-external-embeds-when-using-topic-thumbnails/255452 "2023-03-31T18:42:44Z")

</div>

We are launching a forum for our product, whose external embeds already function with OneBox after allowing Iframes from us. A direct link to an embed, is neatly transformed into the result of our oembed endpoint. Now,…

---

## [How to programmatically retrieve the external\_id for a topic](https://meta.discourse.org/t/how-to-programmatically-retrieve-the-external-id-for-a-topic/259914)

<div class="topic-metadata">

**Author:** [@SeanOSullivan](https://meta.discourse.org/u/SeanOSullivan)\
**Replies:** 7\
**Last updated:** [March 31, 2023, 6:00am UTC](https://meta.discourse.org/t/how-to-programmatically-retrieve-the-external-id-for-a-topic/259914 "2023-03-31T06:00:28Z")

</div>

Hi all, I need to retrieve the remote\_id for a topic, programmatically. The backdrop - I am running a script on api.onPageChange that retrieves info on the current topic/category/group, then does an Ajax call to an ext…

---

## [How do I put gradient on thin icons?](https://meta.discourse.org/t/how-do-i-put-gradient-on-thin-icons/259429)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 6\
**Last updated:** [March 31, 2023, 5:34am UTC](https://meta.discourse.org/t/how-do-i-put-gradient-on-thin-icons/259429 "2023-03-31T05:34:53Z")

</div>

I tried everything, I can’t put gradient degrade on icons like these here

---

## [Force a linebreak before and after a quote](https://meta.discourse.org/t/force-a-linebreak-before-and-after-a-quote/270376)

<div class="topic-metadata">

**Author:** [@kiefferr](https://meta.discourse.org/u/kiefferr)\
**Replies:** 5\
**Last updated:** [March 30, 2023, 9:12pm UTC](https://meta.discourse.org/t/force-a-linebreak-before-and-after-a-quote/270376 "2023-03-30T21:12:06Z")

</div>

Any chance anyone has come upon an easy solution in the last few years to force a line break both before and after a quote?

---

## [Is there a way to specify a min and max for settings.yml for a plugin?](https://meta.discourse.org/t/is-there-a-way-to-specify-a-min-and-max-for-settings-yml-for-a-plugin/259676)

<div class="topic-metadata">

**Author:** [@bstgmr02](https://meta.discourse.org/u/bstgmr02)\
**Replies:** 7\
**Last updated:** [March 30, 2023, 10:31am UTC](https://meta.discourse.org/t/is-there-a-way-to-specify-a-min-and-max-for-settings-yml-for-a-plugin/259676 "2023-03-30T10:31:04Z")

</div>

// Running Discourse Development Environment // I have the following: min\_score: default: 0.01 client: true min: 0.0001 But the admin can keep overwriting it to negative values, is there a workaround for t…

---

## [X-Discourse-Event Webhook header values](https://meta.discourse.org/t/x-discourse-event-webhook-header-values/259774)

<div class="topic-metadata">

**Author:** [@Martin\_Lim](https://meta.discourse.org/u/Martin_Lim)\
**Replies:** 3\
**Last updated:** [March 29, 2023, 4:59pm UTC](https://meta.discourse.org/t/x-discourse-event-webhook-header-values/259774 "2023-03-29T16:59:15Z")

</div>

Where can I find ALL of the possible values for the X-Discourse-Event webhook header?

---

## [Mobile View Loading different HTML as compared to Desktop](https://meta.discourse.org/t/mobile-view-loading-different-html-as-compared-to-desktop/259844)

<div class="topic-metadata">

**Author:** [@Parul](https://meta.discourse.org/u/Parul)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 1:08pm UTC](https://meta.discourse.org/t/mobile-view-loading-different-html-as-compared-to-desktop/259844 "2023-03-29T13:08:37Z")

</div>

I have signed up to the Trial account of Discourse and created a custom theme. It is working fine on the desktop, however not working on mobile and is loading entirely different HTML. Left is a mobile view and right…

---

## [How to allow html client.en.yml bold text to appear in handlebar files?](https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817)

<div class="topic-metadata">

**Author:** [@bstgmr02](https://meta.discourse.org/u/bstgmr02)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 10:39am UTC](https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817 "2023-03-29T10:39:48Z")

</div>

// Running Discourse Development Environment // I have tried a few different approaches but I always end up with the same result, using stuff like \<b\>text\</b\>, \[b\]text\[/b\], \*\*text\*\* but nothing seems to work, instead it…

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

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