# Development

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

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

**Page:** 16

---

## [Ember addons are resolving as incorrect peer dependencies. -- fixed by removing "content-tag@3.1.0": "patches/content-tag@3.1.0.patch",](https://meta.discourse.org/t/ember-addons-are-resolving-as-incorrect-peer-dependencies-fixed-by-removing-content-tag-3-1-0-patches-content-tag-3-1-0-patch/350251)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 8\
**Last updated:** [February 12, 2025, 10:48pm UTC](https://meta.discourse.org/t/ember-addons-are-resolving-as-incorrect-peer-dependencies-fixed-by-removing-content-tag-3-1-0-patches-content-tag-3-1-0-patch/350251 "2025-02-12T22:48:41Z")

</div>

I swear I spend 2-4 hours a week keeping my dev instance working. I do a pnpm dedupe. pfaffman@noreno:~/src/discourse-repos/discourse$ bin/ember-cli …

---

## [Example of any plugin with form with a post request](https://meta.discourse.org/t/example-of-any-plugin-with-form-with-a-post-request/351930)

<div class="topic-metadata">

**Author:** [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)\
**Replies:** 7\
**Last updated:** [February 12, 2025, 9:35pm UTC](https://meta.discourse.org/t/example-of-any-plugin-with-form-with-a-post-request/351930 "2025-02-12T21:35:36Z")

</div>

Hello All! We are working to try and unblock a plugin development we are doing here in Error "Unable to configure link to 'Auto Send Messages'. Ensure ad-blockers are disabled and try reloading the page." And we we cou…

---

## [Updated Custom Header Icon: Post Data via URL](https://meta.discourse.org/t/updated-custom-header-icon-post-data-via-url/325174)

<div class="topic-metadata">

**Author:** [@littleviolette](https://meta.discourse.org/u/littleviolette)\
**Replies:** 5\
**Last updated:** [February 12, 2025, 8:05pm UTC](https://meta.discourse.org/t/updated-custom-header-icon-post-data-via-url/325174 "2025-02-12T20:05:26Z")

</div>

Discourse has recently deprecated api.decorateWidget, which I used to insert custom header icons and post the current user’s username via a URL. I was wondering how I can post the user’s current username via HTTP with t…

---

## [Gem::MissingSpecError for plugin gem dependency](https://meta.discourse.org/t/gem-missingspecerror-for-plugin-gem-dependency/351490)

<div class="topic-metadata">

**Author:** [@lllukom](https://meta.discourse.org/u/lllukom)\
**Replies:** 3\
**Last updated:** [February 10, 2025, 9:24pm UTC](https://meta.discourse.org/t/gem-missingspecerror-for-plugin-gem-dependency/351490 "2025-02-10T21:24:49Z")

</div>

I’ve created some plugin for Discourse and added a gem dependency in plugin.rb like this: gem 'faraday-multipart', '1.1.0', require\_name: 'faraday/multipart' then referenced this plugin in app.yml and performed launche…

---

## [Question about creating a theme component from HighlightJS script](https://meta.discourse.org/t/question-about-creating-a-theme-component-from-highlightjs-script/351520)

<div class="topic-metadata">

**Author:** [@CarolineFrasca](https://meta.discourse.org/u/CarolineFrasca)\
**Replies:** 2\
**Last updated:** [February 10, 2025, 9:01pm UTC](https://meta.discourse.org/t/question-about-creating-a-theme-component-from-highlightjs-script/351520 "2025-02-10T21:01:08Z")

</div>

Hi there! I saw your message about building a theme component from a fork of HighlightJS. I am hoping to do something similar for the Modular forum to add syntax highlighting for Mojo and I was wondering if you might be …

---

## [\[Glimmer\] Different theme for personal message topics list?](https://meta.discourse.org/t/glimmer-different-theme-for-personal-message-topics-list/351090)

<div class="topic-metadata">

**Author:** [@rahim123](https://meta.discourse.org/u/rahim123)\
**Replies:** 2\
**Last updated:** [February 8, 2025, 4:31am UTC](https://meta.discourse.org/t/glimmer-different-theme-for-personal-message-topics-list/351090 "2025-02-08T04:31:05Z")

</div>

Hi there, I have been using a theme component with Sam's Simple Theme for the reasons described in Different theme for personal message topics list? to show all the participants’ avatars in the PM topics list like this: …

---

## [Potential way to hide ignored users from topic list?](https://meta.discourse.org/t/potential-way-to-hide-ignored-users-from-topic-list/191980)

<div class="topic-metadata">

**Author:** [@th21](https://meta.discourse.org/u/th21)\
**Replies:** 7\
**Last updated:** [February 7, 2025, 5:39pm UTC](https://meta.discourse.org/t/potential-way-to-hide-ignored-users-from-topic-list/191980 "2025-02-07T17:39:44Z")

</div>

Is that possible to make an API call to get ther user’s ignored users list and hide the topic which has that user-id or remove thoes topics before the topic list was rendered?

---

## [Custom automation - modifications flow for successful integration on Automation plugin](https://meta.discourse.org/t/custom-automation-modifications-flow-for-successful-integration-on-automation-plugin/350141)

<div class="topic-metadata">

**Author:** [@ddsongs](https://meta.discourse.org/u/ddsongs)\
**Replies:** 2\
**Last updated:** [February 4, 2025, 2:17pm UTC](https://meta.discourse.org/t/custom-automation-modifications-flow-for-successful-integration-on-automation-plugin/350141 "2025-02-04T14:17:24Z")

</div>

Hi all, I’m trying to create a custom automation that when a query is marked as solution/solved, the creator of the topic will receive a pms (or alternatively, a new reply is created in the thread with a pre-defined mes…

---

## ["Api-Key" and "Api-Username" for try.discourse.org?](https://meta.discourse.org/t/api-key-and-api-username-for-try-discourse-org/203150)

<div class="topic-metadata">

**Author:** [@orli](https://meta.discourse.org/u/orli)\
**Replies:** 12\
**Last updated:** [February 4, 2025, 12:36pm UTC](https://meta.discourse.org/t/api-key-and-api-username-for-try-discourse-org/203150 "2025-02-04T12:36:09Z")

</div>

Hi, I would like to create some weekly statistic reports using the REST API. I will be doing this for forum linkingyourthinking com but I would like to start early before I have gotten the keys from the administrator w…

---

## [Modify/add custom options to category settings](https://meta.discourse.org/t/modify-add-custom-options-to-category-settings/350329)

<div class="topic-metadata">

**Author:** [@king\_laurel](https://meta.discourse.org/u/king_laurel)\
**Replies:** 0\
**Last updated:** [February 3, 2025, 10:02pm UTC](https://meta.discourse.org/t/modify-add-custom-options-to-category-settings/350329 "2025-02-03T22:02:38Z")

</div>

Is it possible to add custom settings to the +New Category options? I have a custom header that renders on category pages and I would like to allow the category creator to upload a light mode background-color for said he…

---

## [Is there any way to use @if in a Theme Component using a variable?](https://meta.discourse.org/t/is-there-any-way-to-use-if-in-a-theme-component-using-a-variable/350236)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 2\
**Last updated:** [February 3, 2025, 1:15pm UTC](https://meta.discourse.org/t/is-there-any-way-to-use-if-in-a-theme-component-using-a-variable/350236 "2025-02-03T13:15:03Z")

</div>

I’m trying to use a boolean theme setting to determine if I can use a specific set styling: @if var(--my-variable) { .my-selector { display: block; } } and elsewhere in included file: :root { --my-variabl…

---

## [New Plugin Outlet in Chat Plugin](https://meta.discourse.org/t/new-plugin-outlet-in-chat-plugin/349887)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 5\
**Last updated:** [February 3, 2025, 10:41am UTC](https://meta.discourse.org/t/new-plugin-outlet-in-chat-plugin/349887 "2025-02-03T10:41:56Z")

</div>

I would like to add some functionality on the Channel settings page, any objection to PRing a Nav plugin outlet here?: In similar vein to Group Nav

---

## [Two tracked variables not updating](https://meta.discourse.org/t/two-tracked-variables-not-updating/345332)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Replies:** 7\
**Last updated:** [February 3, 2025, 9:48am UTC](https://meta.discourse.org/t/two-tracked-variables-not-updating/345332 "2025-02-03T09:48:36Z")

</div>

I have the following code: import Component from "@glimmer/component"; import { apiInitializer } from "discourse/lib/api"; import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; import { in…

---

## [How can I install my own plugin written in Ruby?](https://meta.discourse.org/t/how-can-i-install-my-own-plugin-written-in-ruby/349762)

<div class="topic-metadata">

**Author:** [@Xavier\_Garzon](https://meta.discourse.org/u/Xavier_Garzon)\
**Replies:** 3\
**Last updated:** [January 31, 2025, 7:36pm UTC](https://meta.discourse.org/t/how-can-i-install-my-own-plugin-written-in-ruby/349762 "2025-01-31T19:36:15Z")

</div>

I have a CSV file with my discourse user emails. I need to create a script that will run daily and send a specific email template to a specific set of users. Then, every day I need to run this script with the next set of…

---

## [Modifying style attribute dynamically on Topic List Item](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 11\
**Last updated:** [January 31, 2025, 4:24pm UTC](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415 "2025-01-31T16:24:16Z")

</div>

Disclaimer: very happy with the direction here and thanks for all the work so far as there’s a lot of power in the new system. Just need to make sure we keep some equivalent capabilities? … In my Component, TLP, I’m c…

---

## [Posting a new topic via API](https://meta.discourse.org/t/posting-a-new-topic-via-api/93539)

<div class="topic-metadata">

**Author:** [@vavalomi](https://meta.discourse.org/u/vavalomi)\
**Replies:** 7\
**Last updated:** [January 29, 2025, 11:11am UTC](https://meta.discourse.org/t/posting-a-new-topic-via-api/93539 "2025-01-29T11:11:25Z")

</div>

Hello, I cannot seem to make posting work and unfortunately couldn’t find much neither in api docs, nor on the forum - What type of encoding/cleaning (if any) do I have to do for the title and raw post body strings? I’…

---

## [Challenges creating a custom color palette](https://meta.discourse.org/t/challenges-creating-a-custom-color-palette/349121)

<div class="topic-metadata">

**Author:** [@mk0r](https://meta.discourse.org/u/mk0r)\
**Replies:** 8\
**Last updated:** [January 29, 2025, 2:21am UTC](https://meta.discourse.org/t/challenges-creating-a-custom-color-palette/349121 "2025-01-29T02:21:24Z")

</div>

I’ve tried to create a completely custom color scheme by defining my colors in the about.json file of my theme on GitHub. Unfortunately only some of my color definitions are being respected in the site. For example, in…

---

## [Add button to TOC theme component](https://meta.discourse.org/t/add-button-to-toc-theme-component/335200)

<div class="topic-metadata">

**Author:** [@qianping\_chen](https://meta.discourse.org/u/qianping_chen)\
**Replies:** 9\
**Last updated:** [January 28, 2025, 6:37pm UTC](https://meta.discourse.org/t/add-button-to-toc-theme-component/335200 "2025-01-28T18:37:14Z")

</div>

I hope you can add the hidden directory function. Custom plugins This is made with reference to your plugin, mainly adding one more button, and then using JavaScript for dynamic rendering. discourse------------…

---

## [Create topic using Discourse API](https://meta.discourse.org/t/create-topic-using-discourse-api/243930)

<div class="topic-metadata">

**Author:** [@alexcomp](https://meta.discourse.org/u/alexcomp)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 12:19pm UTC](https://meta.discourse.org/t/create-topic-using-discourse-api/243930 "2022-11-03T12:19:19Z")

</div>

Hello I need your help please. I’m trying to create a topic using Discourse API but it’s fail every time I tried. This is my code : https://myDiscourse.com/posts.json?title=New+test+posted&raw=new+posted+text+to+test+…

---

## [Color palette settings are not being reflected](https://meta.discourse.org/t/color-palette-settings-are-not-being-reflected/349034)

<div class="topic-metadata">

**Author:** [@mk0r](https://meta.discourse.org/u/mk0r)\
**Replies:** 7\
**Last updated:** [January 26, 2025, 6:00pm UTC](https://meta.discourse.org/t/color-palette-settings-are-not-being-reflected/349034 "2025-01-26T18:00:53Z")

</div>

I have a new discourse installation and created scaffolding for a new theme. First thing was I edited the color scheme to use a scheme called Flexoki. You can see here: I’ve added and selected the theme via GitHub on …

---

## [Documenting custom properties](https://meta.discourse.org/t/documenting-custom-properties/348806)

<div class="topic-metadata">

**Author:** [@manuel](https://meta.discourse.org/u/manuel)\
**Replies:** 2\
**Last updated:** [January 25, 2025, 8:52am UTC](https://meta.discourse.org/t/documenting-custom-properties/348806 "2025-01-25T08:52:29Z")

</div>

I did this recently for a theme, prompting Claude-3.5, embedded with Cursor, to generate documentation. It worked quite well, so I wanted to try it for the Discourse core codebase. I restricted context to .scss-files, b…

---

## [How to update the buffered attributes from within a Glimmer Component attached to edit-topic](https://meta.discourse.org/t/how-to-update-the-buffered-attributes-from-within-a-glimmer-component-attached-to-edit-topic/348831)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 2\
**Last updated:** [January 24, 2025, 8:44pm UTC](https://meta.discourse.org/t/how-to-update-the-buffered-attributes-from-within-a-glimmer-component-attached-to-edit-topic/348831 "2025-01-24T20:44:24Z")

</div>

This is the old template I’m trying to elminate and move it to a Glimmer Component {{#if model.showLocationControls}} {{add-location-controls location=buffered.location categoryId=buffered.category.id }} {{/…

---

## [Dockerfile (Apple/M1) for launching Discourse stable branch (v3.3.3) in 2025](https://meta.discourse.org/t/dockerfile-apple-m1-for-launching-discourse-stable-branch-v3-3-3-in-2025/348405)

<div class="topic-metadata">

**Author:** [@the\_teacher](https://meta.discourse.org/u/the_teacher)\
**Replies:** 0\
**Last updated:** [January 22, 2025, 3:44pm UTC](https://meta.discourse.org/t/dockerfile-apple-m1-for-launching-discourse-stable-branch-v3-3-3-in-2025/348405 "2025-01-22T15:44:36Z")

</div>

Hi there! Some days ago I started learning Discourse and didn’t find a Dockerfile for Apple/M chips. So I had created my own and I would like to share it with anyone who also wants keep a control over own image. Also b…

---

## [Adjusting Calendar Size in Desktop](https://meta.discourse.org/t/adjusting-calendar-size-in-desktop/348571)

<div class="topic-metadata">

**Author:** [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Replies:** 3\
**Last updated:** [January 23, 2025, 4:50pm UTC](https://meta.discourse.org/t/adjusting-calendar-size-in-desktop/348571 "2025-01-23T16:50:47Z")

</div>

I was inspecting inside the html class containing desktop-view not-mobile-device, to reduce the calendar size on desktop, and have found where the CSS might need to be changed to achieve this task. the class fc-month v…

---

## [Is there a document introducing the database schema design?](https://meta.discourse.org/t/is-there-a-document-introducing-the-database-schema-design/171729)

<div class="topic-metadata">

**Author:** [@xdzhang](https://meta.discourse.org/u/xdzhang)\
**Replies:** 3\
**Last updated:** [January 23, 2025, 5:06am UTC](https://meta.discourse.org/t/is-there-a-document-introducing-the-database-schema-design/171729 "2025-01-23T05:06:53Z")

</div>

I’m study how discourse was implemented, and I hope to understand each fields in schemas of discourse database, so that I can quickly know the meaning of things done by ruby codes.Is there a suite document for me?

---

## [How restrict access to button pin/unpin](https://meta.discourse.org/t/how-restrict-access-to-button-pin-unpin/348498)

<div class="topic-metadata">

**Author:** [@HeadShot](https://meta.discourse.org/u/HeadShot)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 11:49pm UTC](https://meta.discourse.org/t/how-restrict-access-to-button-pin-unpin/348498 "2025-01-22T23:49:42Z")

</div>

i try this code in header document.addEventListener("DOMContentLoaded", function() { setTimeout(() =\> { let userTrustLevel = parseInt(Discourse.User.current().trust\_level); if (userTrustLeve…

---

## [Getting the file size of attachments added to posts through the API](https://meta.discourse.org/t/getting-the-file-size-of-attachments-added-to-posts-through-the-api/347934)

<div class="topic-metadata">

**Author:** [@francis\_exalate](https://meta.discourse.org/u/francis_exalate)\
**Replies:** 3\
**Last updated:** [January 21, 2025, 8:54pm UTC](https://meta.discourse.org/t/getting-the-file-size-of-attachments-added-to-posts-through-the-api/347934 "2025-01-21T20:54:16Z")

</div>

Hi, I have been looking around the topic but couldn’t find it. I’m looking for a way to retrieve the size of a file whenever a post contains an image (or other type of attachment). The upload related api has no such ‘…

---

## [Plugin: access to toolbarEvent from modal](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413)

<div class="topic-metadata">

**Author:** [@sirdavidoff](https://meta.discourse.org/u/sirdavidoff)\
**Replies:** 5\
**Last updated:** [January 21, 2025, 3:45pm UTC](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413 "2025-01-21T15:45:36Z")

</div>

My plugin inserts a button in the composer toolbar. This toolbar opens a modal, and when the modal is closed I want to add text to the post. Everything works perfectly except the last step, because I’m struggling to give…

---

## [Online update succeeds, but rebuild fails](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 8\
**Last updated:** [January 21, 2025, 9:09am UTC](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158 "2025-01-21T09:09:06Z")

</div>

Came across a curious issue which may highlight another difference between online updates and command line updates. If I perform an online update with a plugin with the rmagick gem, it succeeds. However, it fails with …

---

## [Get category ID from topic - Deprecation notice: controller:navigation/category no longer exists](https://meta.discourse.org/t/get-category-id-from-topic-deprecation-notice-controller-navigation-category-no-longer-exists/347733)

<div class="topic-metadata">

**Author:** [@robertkibet](https://meta.discourse.org/u/robertkibet)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 9:59pm UTC](https://meta.discourse.org/t/get-category-id-from-topic-deprecation-notice-controller-navigation-category-no-longer-exists/347733 "2025-01-17T21:59:08Z")

</div>

We currently have \<script type="text/discourse-plugin" version="1.4.0"\> const controller = container.lookup('controller:topic'); const controllerNavCategory = container.lookup('controller:navigation/category'); …

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

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