# Development

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

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

**Page:** 25

---

## [Change the active record adapter to postgis](https://meta.discourse.org/t/change-the-active-record-adapter-to-postgis/314288)

<div class="topic-metadata">

**Author:** [@Boerni](https://meta.discourse.org/u/Boerni)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 9:03am UTC](https://meta.discourse.org/t/change-the-active-record-adapter-to-postgis/314288 "2024-06-29T09:03:13Z")

</div>

Hello everyone, I am currently developing an extension that requires the postgis adapter instead of postgresql. For my local development I can simply edit the database.yml. If I want to use this extension in Docker Dep…

---

## [Get a single user by username response limited via Python request](https://meta.discourse.org/t/get-a-single-user-by-username-response-limited-via-python-request/313887)

<div class="topic-metadata">

**Author:** [@littleviolette](https://meta.discourse.org/u/littleviolette)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 3:27am UTC](https://meta.discourse.org/t/get-a-single-user-by-username-response-limited-via-python-request/313887 "2024-06-29T03:27:55Z")

</div>

I have been using the following endpoint to get user’s data via username via Python requests. https://{defaultHost}/u/{username}.json Recently, I found that the data returned via Python requests is different from enter…

---

## [How to automatically wrap menu when it is too long?](https://meta.discourse.org/t/how-to-automatically-wrap-menu-when-it-is-too-long/314188)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**Replies:** 0\
**Last updated:** [June 28, 2024, 3:37pm UTC](https://meta.discourse.org/t/how-to-automatically-wrap-menu-when-it-is-too-long/314188 "2024-06-28T15:37:06Z")

</div>

How to automatically wrap the category menu when it is too long, for the phone interface. My device is Samsung ultra s21. With iphone 11, 12, 13 responsive mobile ok with long menu category.

---

## [CORS issue posting to Discourse from Obsidian](https://meta.discourse.org/t/cors-issue-posting-to-discourse-from-obsidian/310636)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 10\
**Last updated:** [June 28, 2024, 5:50pm UTC](https://meta.discourse.org/t/cors-issue-posting-to-discourse-from-obsidian/310636 "2024-06-28T17:50:15Z")

</div>

I’ve started using Obsidian for writing so figured I’d make an Obsidian plugin for posting to my Discourse forum. In theory that’s easy to do, but the response from my first attempt was: Access to fetch at 'http://local…

---

## [How to get the current user using Ruby?](https://meta.discourse.org/t/how-to-get-the-current-user-using-ruby/314149)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 2:14pm UTC](https://meta.discourse.org/t/how-to-get-the-current-user-using-ruby/314149 "2024-06-28T14:14:50Z")

</div>

Hello everyone!, I want to get the current user without need of providing id or username or post id using Ruby not by using JS.Any help would be appreciated.

---

## [How to retrieve Topics/Topics List, Replies from Activity Tab using Ruby?](https://meta.discourse.org/t/how-to-retrieve-topics-topics-list-replies-from-activity-tab-using-ruby/313529)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 4\
**Last updated:** [June 27, 2024, 11:21am UTC](https://meta.discourse.org/t/how-to-retrieve-topics-topics-list-replies-from-activity-tab-using-ruby/313529 "2024-06-27T11:21:24Z")

</div>

Hi!, Is there any way we can retrieve Topics/Topics List ,Replies From Activity Tab using Ruby? Any help would be appreciated. Image 1 : (Non admin User) Image 2 : (Admin User)

---

## [Personal Message notification showing incorrect reply count](https://meta.discourse.org/t/personal-message-notification-showing-incorrect-reply-count/313383)

<div class="topic-metadata">

**Author:** [@Farhan\_Hossen](https://meta.discourse.org/u/Farhan_Hossen)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 3:51am UTC](https://meta.discourse.org/t/personal-message-notification-showing-incorrect-reply-count/313383 "2024-06-27T03:51:21Z")

</div>

Hi everyone! I’m sending a private message through the user api. using the username ‘system’’ const postData = { title: messageTitle, raw: messageBody, username: 'system', category: 22,…

---

## [Restricting maximum length for search query](https://meta.discourse.org/t/restricting-maximum-length-for-search-query/313871)

<div class="topic-metadata">

**Author:** [@Mudit\_Maheshwari](https://meta.discourse.org/u/Mudit_Maheshwari)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 9:47pm UTC](https://meta.discourse.org/t/restricting-maximum-length-for-search-query/313871 "2024-06-26T21:47:53Z")

</div>

Hi, Can anyone assist with setting maximum length for search query for forum? Is there a setting for that? Thanks

---

## [Getting error from api while editing post or topic](https://meta.discourse.org/t/getting-error-from-api-while-editing-post-or-topic/313810)

<div class="topic-metadata">

**Author:** [@Priyanka](https://meta.discourse.org/u/Priyanka)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 2:50pm UTC](https://meta.discourse.org/t/getting-error-from-api-while-editing-post-or-topic/313810 "2024-06-26T14:50:08Z")

</div>

Can someone help me how to edit post or topics? In react native mobile app i am using this api to edit post https://{defaultHost}/posts/{id}.json

---

## [Can you get the token needed to download backups via the API?](https://meta.discourse.org/t/can-you-get-the-token-needed-to-download-backups-via-the-api/313487)

<div class="topic-metadata">

**Author:** [@paperdigits](https://meta.discourse.org/u/paperdigits)\
**Replies:** 3\
**Last updated:** [June 25, 2024, 10:10am UTC](https://meta.discourse.org/t/can-you-get-the-token-needed-to-download-backups-via-the-api/313487 "2024-06-25T10:10:45Z")

</div>

I am trying to download backups via the API, but the docs say it requires a token in order to download the file. But I can’t find any docs and how I can obtain this token via the API. It seems to be present only in the e…

---

## [Search Banner image cuts off on smaller screens](https://meta.discourse.org/t/search-banner-image-cuts-off-on-smaller-screens/273647)

<div class="topic-metadata">

**Author:** [@Sherran](https://meta.discourse.org/u/Sherran)\
**Replies:** 1\
**Last updated:** [September 6, 2022, 1:48pm UTC](https://meta.discourse.org/t/search-banner-image-cuts-off-on-smaller-screens/273647 "2022-09-06T13:48:16Z")

</div>

Hi. I installed the official theme-component: Advanced Search Banner and it’s helpful. Only one thing annoys me. I uploaded a background image for the search banner, but it seems to adjust itself by cutting off the right…

---

## [Unable to get tag count per category](https://meta.discourse.org/t/unable-to-get-tag-count-per-category/313517)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**Replies:** 0\
**Last updated:** [June 25, 2024, 9:16am UTC](https://meta.discourse.org/t/unable-to-get-tag-count-per-category/313517 "2024-06-25T09:16:12Z")

</div>

When requesting a topic list filtered by category and tag, the tag count returned in the json is the total number of topics with this tag, not filtered by the category. E.g. there are 13 topics in the Contribute \> Bug c…

---

## [How to Add Unique HTML Content Below Topic Body in discourse forum for Specific Topics](https://meta.discourse.org/t/how-to-add-unique-html-content-below-topic-body-in-discourse-forum-for-specific-topics/311555)

<div class="topic-metadata">

**Author:** [@pinder99](https://meta.discourse.org/u/pinder99)\
**Replies:** 2\
**Last updated:** [June 12, 2024, 11:52am UTC](https://meta.discourse.org/t/how-to-add-unique-html-content-below-topic-body-in-discourse-forum-for-specific-topics/311555 "2024-06-12T11:52:13Z")

</div>

I am working on an discourse forum and I need to add unique HTML content below the topic body for specific topics. The HTML content should be displayed only on certain topics and not on all topics. Currently, I have add…

---

## [How to unlike a topic or post](https://meta.discourse.org/t/how-to-unlike-a-topic-or-post/311733)

<div class="topic-metadata">

**Author:** [@priyankatiwari](https://meta.discourse.org/u/priyankatiwari)\
**Replies:** 6\
**Last updated:** [June 24, 2024, 7:11am UTC](https://meta.discourse.org/t/how-to-unlike-a-topic-or-post/311733 "2024-06-24T07:11:03Z")

</div>

Can anyone tell me which api used for to unlike topic or post. I am able to like post from below api: https://{defaultHost}/post\_actions.json. Just for testing i am editing

---

## [Create a custom Discourse plugin](https://meta.discourse.org/t/create-a-custom-discourse-plugin/313336)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**Replies:** 2\
**Last updated:** [June 24, 2024, 5:59am UTC](https://meta.discourse.org/t/create-a-custom-discourse-plugin/313336 "2024-06-24T05:59:32Z")

</div>

Could someone direct me to the official chat or page where I can seek guidance on modifying a plugin file for the Discourse OpenID plugin? The endpoint is returning an application/jwt token instead of a JSON response, an…

---

## [How valid\_reactions comes inside topics post API?](https://meta.discourse.org/t/how-valid-reactions-comes-inside-topics-post-api/313278)

<div class="topic-metadata">

**Author:** [@priyankatiwari](https://meta.discourse.org/u/priyankatiwari)\
**Replies:** 0\
**Last updated:** [June 23, 2024, 2:45pm UTC](https://meta.discourse.org/t/how-valid-reactions-comes-inside-topics-post-api/313278 "2024-06-23T14:45:14Z")

</div>

I am trying to use this API https://meta.discourse.org/discourse-reactions/posts/1343035/custom-reactions/heart/toggle.json for post like/unlike, but this API is not working for me. Do we need to add some plugin for cust…

---

## [Prevent text selection and right-click actions](https://meta.discourse.org/t/prevent-text-selection-and-right-click-actions/311289)

<div class="topic-metadata">

**Author:** [@kokoloman001](https://meta.discourse.org/u/kokoloman001)\
**Replies:** 7\
**Last updated:** [June 23, 2024, 12:51pm UTC](https://meta.discourse.org/t/prevent-text-selection-and-right-click-actions/311289 "2024-06-23T12:51:48Z")

</div>

I’ve already attempted looking for ways to prevent right-clicks and text selection with the mouse. Discourse has that available, however I tried a few other ways. but haven’t yet discovered the ideal approach. I’m lookin…

---

## [A versioned API for client side plugins](https://meta.discourse.org/t/a-versioned-api-for-client-side-plugins/40051)

<div class="topic-metadata">

**Author:** [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Replies:** 33\
**Last updated:** [June 21, 2024, 10:18pm UTC](https://meta.discourse.org/t/a-versioned-api-for-client-side-plugins/40051 "2024-06-21T22:18:20Z")

</div>

Later today I am going to be merging our new post rendering engine into master. Swapping out Ember/HTMLBars for a virtual-dom based renderer provides us with a huge performance increase, but it also has the side effect …

---

## [Is it possible to Embed into a form post](https://meta.discourse.org/t/is-it-possible-to-embed-into-a-form-post/312946)

<div class="topic-metadata">

**Author:** [@jack\_t](https://meta.discourse.org/u/jack_t)\
**Replies:** 0\
**Last updated:** [June 20, 2024, 8:32pm UTC](https://meta.discourse.org/t/is-it-possible-to-embed-into-a-form-post/312946 "2024-06-20T20:32:09Z")

</div>

Hello! I was wondering it is is possible to augment posts in a specific category with an Embedded JS SDK component? My forum has a “show and tell” category and we recently released this SDK to allow for easy embedding …

---

## [How to edit \<head\>](https://meta.discourse.org/t/how-to-edit-head/312938)

<div class="topic-metadata">

**Author:** [@sok777](https://meta.discourse.org/u/sok777)\
**Replies:** 2\
**Last updated:** [June 20, 2024, 9:01pm UTC](https://meta.discourse.org/t/how-to-edit-head/312938 "2024-06-20T21:01:37Z")

</div>

is there a way to edit the easily when using git themes?

---

## [Changing Display for Left Side Navigation/Categories List](https://meta.discourse.org/t/changing-display-for-left-side-navigation-categories-list/312944)

<div class="topic-metadata">

**Author:** [@jack\_t](https://meta.discourse.org/u/jack_t)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 8:22pm UTC](https://meta.discourse.org/t/changing-display-for-left-side-navigation-categories-list/312944 "2024-06-20T20:22:32Z")

</div>

Hello! I was wondering it is possible and how I might be able to better display “New/Unread” and its count display. I have some long title names under Navigation Menu and they end up cutting off this information with ……

---

## [Working with the ActivityPub Plugin](https://meta.discourse.org/t/working-with-the-activitypub-plugin/273437)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Replies:** 10\
**Last updated:** [June 20, 2024, 9:13am UTC](https://meta.discourse.org/t/working-with-the-activitypub-plugin/273437 "2024-06-20T09:13:34Z")

</div>

OK, I think that this is due to my testing leaving me with a broken database, and I should blow away my test site and start over. \[edit: useless detail removed to clean the thread\] My assumption is that this is somet…

---

## [Focus the editor when title is pre-filled](https://meta.discourse.org/t/focus-the-editor-when-title-is-pre-filled/311449)

<div class="topic-metadata">

**Author:** [@Onlyanegg](https://meta.discourse.org/u/Onlyanegg)\
**Replies:** 9\
**Last updated:** [June 19, 2024, 9:41pm UTC](https://meta.discourse.org/t/focus-the-editor-when-title-is-pre-filled/311449 "2024-06-19T21:41:47Z")

</div>

I’ve got a url similar to this: https://forum.example.com/new-message?groupname=moderators&title=Help+me+with+some+task+please That I link to on my site, to bring users to the forum to ask a question. I use various …

---

## [\[Question/Request\] Featured image url for post](https://meta.discourse.org/t/question-request-featured-image-url-for-post/162737)

<div class="topic-metadata">

**Author:** [@TechSquidTV](https://meta.discourse.org/u/TechSquidTV)\
**Replies:** 2\
**Last updated:** [June 18, 2024, 3:57am UTC](https://meta.discourse.org/t/question-request-featured-image-url-for-post/162737 "2024-06-18T03:57:56Z")

</div>

Hello all, I know I’m not the first person to look into the best way to combine a blog platform with discourse. I’m semi considering building a static blog with discourse comments. The other thought is building a stati…

---

## [Can we arrange the subcategories like this?](https://meta.discourse.org/t/can-we-arrange-the-subcategories-like-this/311917)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 8\
**Last updated:** [June 18, 2024, 2:03am UTC](https://meta.discourse.org/t/can-we-arrange-the-subcategories-like-this/311917 "2024-06-18T02:03:02Z")

</div>

Hi helpful friends. This is how I use it now. display : flex Can we do it like this? But not like that. display : block Thank you :pray:

---

## [Removing specific staff action logs using the console](https://meta.discourse.org/t/removing-specific-staff-action-logs-using-the-console/312393)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**Replies:** 4\
**Last updated:** [June 17, 2024, 5:17pm UTC](https://meta.discourse.org/t/removing-specific-staff-action-logs-using-the-console/312393 "2024-06-17T17:17:47Z")

</div>

Continued from: Don't log all post edits in staff action logs for a user-merge - #4 by JammyDodger Thanks. In the interim, if a rails console guru can suggest a command to delete system post edit logs for a specified da…

---

## [Making “bg image” visible intead of the “gradient” being applied](https://meta.discourse.org/t/making-bg-image-visible-intead-of-the-gradient-being-applied/312373)

<div class="topic-metadata">

**Author:** [@wendellverli](https://meta.discourse.org/u/wendellverli)\
**Replies:** 0\
**Last updated:** [June 17, 2024, 12:35pm UTC](https://meta.discourse.org/t/making-bg-image-visible-intead-of-the-gradient-being-applied/312373 "2024-06-17T12:35:24Z")

</div>

I want to make changes and I already have a CSS component I’m making adjustments to, however, there is an item with the same “div name” but they are applied in multiple styles… I want to change it so that the “bg image”…

---

## [Please use \`SiteSetting.ignore\_allowed\_groups\` instead](https://meta.discourse.org/t/please-use-sitesetting-ignore-allowed-groups-instead/312318)

<div class="topic-metadata">

**Author:** [@Truest](https://meta.discourse.org/u/Truest)\
**Replies:** 1\
**Last updated:** [June 17, 2024, 5:35am UTC](https://meta.discourse.org/t/please-use-sitesetting-ignore-allowed-groups-instead/312318 "2024-06-17T05:35:03Z")

</div>

Deprecation notice: \`SiteSetting.min\_trust\_level\_to\_allow\_ignore\` has been deprecated. Please use \`SiteSetting.ignore\_allowed\_groups\` instead. (removal in Discourse 3.3) At /var/www/discourse/lib/guardian.rb:562:in \`ca…

---

## [How to bind a domain name for access in the testing environment deployed on Ubuntu](https://meta.discourse.org/t/how-to-bind-a-domain-name-for-access-in-the-testing-environment-deployed-on-ubuntu/312315)

<div class="topic-metadata">

**Author:** [@云磊\_王](https://meta.discourse.org/u/%E4%BA%91%E7%A3%8A_%E7%8E%8B)\
**Replies:** 1\
**Last updated:** [June 17, 2024, 3:09am UTC](https://meta.discourse.org/t/how-to-bind-a-domain-name-for-access-in-the-testing-environment-deployed-on-ubuntu/312315 "2024-06-17T03:09:31Z")

</div>

After replacing “localhost” with my domain name, the logo image display and login redirection are incorrect.

---

## [Deprecation notice: the :meta\_data param is deprecated, use the :topic\_custom\_fields param instead](https://meta.discourse.org/t/deprecation-notice-the-meta-data-param-is-deprecated-use-the-topic-custom-fields-param-instead/312309)

<div class="topic-metadata">

**Author:** [@Truest](https://meta.discourse.org/u/Truest)\
**Replies:** 0\
**Last updated:** [June 17, 2024, 1:13am UTC](https://meta.discourse.org/t/deprecation-notice-the-meta-data-param-is-deprecated-use-the-topic-custom-fields-param-instead/312309 "2024-06-17T01:13:32Z")

</div>

Deprecation notice: the :meta\_data param is deprecated, use the :topic\_custom\_fields param instead (deprecated since Discourse 3.2) (removal in Discourse 3.3) At \<internal:kernel\>:90:in \`tap\` Backtrace /var/www/disco…

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

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