# Development

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

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

**Page:** 65

---

## [Now that there is an API call for Merge Users, how to call it?](https://meta.discourse.org/t/now-that-there-is-an-api-call-for-merge-users-how-to-call-it/149820)

<div class="topic-metadata">

**Author:** [@mpemburn](https://meta.discourse.org/u/mpemburn)\
**Replies:** 5\
**Last updated:** [May 19, 2022, 9:50am UTC](https://meta.discourse.org/t/now-that-there-is-an-api-call-for-merge-users-how-to-call-it/149820 "2022-05-19T09:50:41Z")

</div>

Hi, I started a topic yesterday (now closed) about calling the Merge Users plugin programmatically, and Rafael kindly referred me to the release notes, which feature a mention of the plugin now having a UI (Discourse 2.…

---

## [Getting who liked a post from the API](https://meta.discourse.org/t/getting-who-liked-a-post-from-the-api/103618)

<div class="topic-metadata">

**Author:** [@pontus.dualdecade](https://meta.discourse.org/u/pontus.dualdecade)\
**Replies:** 7\
**Last updated:** [May 18, 2022, 6:34pm UTC](https://meta.discourse.org/t/getting-who-liked-a-post-from-the-api/103618 "2022-05-18T18:34:54Z")

</div>

So, when we get a post like so: GET /posts/13.json We can see in the json actions\_summary which contains the number of likes the post has. And you can deduce if the user I am logged in as has liked if “acted” or “can\_a…

---

## [Converting short upload URLs to full URLs](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760)

<div class="topic-metadata">

**Author:** [@Parker1090](https://meta.discourse.org/u/Parker1090)\
**Replies:** 10\
**Last updated:** [May 18, 2022, 9:40am UTC](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760 "2022-05-18T09:40:12Z")

</div>

I may be barking up the wrong tree here, so apologies if I am - but any pointers very much welcome! There are some threads in our Discourse site which are displayed in part on our main website. Because the cooked versio…

---

## [Get Category Name using JS](https://meta.discourse.org/t/get-category-name-using-js/177110)

<div class="topic-metadata">

**Author:** [@Daniil\_Bazhenov](https://meta.discourse.org/u/Daniil_Bazhenov)\
**Replies:** 2\
**Last updated:** [January 27, 2021, 9:04am UTC](https://meta.discourse.org/t/get-category-name-using-js/177110 "2021-01-27T09:04:50Z")

</div>

Hi, maybe someone can help. I need to get the category name of the current page. I need to get this in a JS script that I can add to Footer or Body. I’ve tried a couple of solutions, but I can’t get it to be stable an…

---

## [Notes about Installing Discourse on Ubuntu 20.04](https://meta.discourse.org/t/notes-about-installing-discourse-on-ubuntu-20-04/226363)

<div class="topic-metadata">

**Author:** [@s-o-n-o-s-u-s](https://meta.discourse.org/u/s-o-n-o-s-u-s)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 6:55pm UTC](https://meta.discourse.org/t/notes-about-installing-discourse-on-ubuntu-20-04/226363 "2022-05-06T18:55:38Z")

</div>

I’m having trouble with the bundle install step. This error keeps coming up. (...) Installing sassc-rails 2.1.2 Installing discourse-ember-rails 0.18.6 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. …

---

## [Change title tag of the 404 page](https://meta.discourse.org/t/change-title-tag-of-the-404-page/84707)

<div class="topic-metadata">

**Author:** [@h.vdheurik](https://meta.discourse.org/u/h.vdheurik)\
**Replies:** 4\
**Last updated:** [May 16, 2022, 8:14pm UTC](https://meta.discourse.org/t/change-title-tag-of-the-404-page/84707 "2022-05-16T20:14:23Z")

</div>

Is it possible to change the title tag of the 404 page ? I now i can change the text that is displayed but i can’t seem to find how to change the title tag. It shows the name of our discourse page.

---

## [Need help to \*\*getSelected\*\* and \*\*replace\*\* from Toolbarevent](https://meta.discourse.org/t/need-help-to-getselected-and-replace-from-toolbarevent/226905)

<div class="topic-metadata">

**Author:** [@bksubhuti](https://meta.discourse.org/u/bksubhuti)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 12:19am UTC](https://meta.discourse.org/t/need-help-to-getselected-and-replace-from-toolbarevent/226905 "2022-05-15T00:19:27Z")

</div>

i’m trying to write a simple button component to call a function called toUni to process either all text or selected text (selected is preferred). I can do a simple button from the tutorial and process the entire compos…

---

## [Avatars not showing on plugin](https://meta.discourse.org/t/avatars-not-showing-on-plugin/226901)

<div class="topic-metadata">

**Author:** [@natasha\_selvidge](https://meta.discourse.org/u/natasha_selvidge)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 10:40pm UTC](https://meta.discourse.org/t/avatars-not-showing-on-plugin/226901 "2022-05-12T22:40:14Z")

</div>

Hi, I am trying to get avatars to show up on my plugin, but when I pull the avatar\_template its shows up like this… src=“/user\_avatar/sitename/natasha/{size}/630932\_2.png” I think it has something to do with size varia…

---

## [Failing to get message.cooked for chat composer reply](https://meta.discourse.org/t/failing-to-get-message-cooked-for-chat-composer-reply/226630)

<div class="topic-metadata">

**Author:** [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 1:47pm UTC](https://meta.discourse.org/t/failing-to-get-message-cooked-for-chat-composer-reply/226630 "2022-05-12T13:47:34Z")

</div>

I’m trying to create a blockquote-like style for the chat reply and I have it working for the chat message but not for the chat-composer-message-details.hbs. This is chat-composer-message-details.hbs: \<div class="chat-…

---

## [Overriding PostStream or Store methods with plugin API?](https://meta.discourse.org/t/overriding-poststream-or-store-methods-with-plugin-api/226858)

<div class="topic-metadata">

**Author:** [@frank.manuel](https://meta.discourse.org/u/frank.manuel)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 12:13pm UTC](https://meta.discourse.org/t/overriding-poststream-or-store-methods-with-plugin-api/226858 "2022-05-12T12:13:09Z")

</div>

Hello, Is it possible to override Store and PostStream methods from a plugin? I tried using Plugin API with “model:store” and “model:post-stream”, but they don’t work. Using Prototype as a hack to force the override do…

---

## [API: how to get joined at date in user summary](https://meta.discourse.org/t/api-how-to-get-joined-at-date-in-user-summary/226803)

<div class="topic-metadata">

**Author:** [@darivadi\_factored](https://meta.discourse.org/u/darivadi_factored)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 12:56am UTC](https://meta.discourse.org/t/api-how-to-get-joined-at-date-in-user-summary/226803 "2022-05-12T00:56:59Z")

</div>

Hi everyone. For the company I work in, we are extracting data for some groups of users and statistics for each of those users. The endpoint "https://{organization\_url}/u/{username}/summary.json" shows the statistics we…

---

## [Create additional sign up button on hero banner](https://meta.discourse.org/t/create-additional-sign-up-button-on-hero-banner/226720)

<div class="topic-metadata">

**Author:** [@iskoel](https://meta.discourse.org/u/iskoel)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 3:29am UTC](https://meta.discourse.org/t/create-additional-sign-up-button-on-hero-banner/226720 "2022-05-11T03:29:42Z")

</div>

Hi, how can I create an additional SIGN UP button and have it poisition on my hero banner? This button will open up the signup modal. I’m only using the theme\_cli. Would appreciate some help on this :slight\_smile:

---

## [Adding Discourse to existing Ruby on Rails site](https://meta.discourse.org/t/adding-discourse-to-existing-ruby-on-rails-site/226331)

<div class="topic-metadata">

**Author:** [@iraszl](https://meta.discourse.org/u/iraszl)\
**Replies:** 2\
**Last updated:** [May 8, 2022, 6:40am UTC](https://meta.discourse.org/t/adding-discourse-to-existing-ruby-on-rails-site/226331 "2022-05-08T06:40:54Z")

</div>

I have a ROR 6.1 site with Devise, and many existing users. I would like to add discourse to this site under a subdomain like forums.example.com, and I want to make sure if you’re logged in on example.com in devise you’r…

---

## [Can't add new class to topic page elements using jQuery?](https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568)

<div class="topic-metadata">

**Author:** [@cosdesign](https://meta.discourse.org/u/cosdesign)\
**Replies:** 16\
**Last updated:** [May 7, 2022, 7:13am UTC](https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568 "2022-05-07T07:13:59Z")

</div>

I’m struggling to learn more about how discourse works and I’m still confused after reading this. I’m trying to add a dynamic title to the admin’s username on the post page using jQuery but is not working. But if I’ll t…

---

## [Hi Meta, we are back. Let's talk about Markdown-it and BBcode](https://meta.discourse.org/t/hi-meta-we-are-back-lets-talk-about-markdown-it-and-bbcode/226260)

<div class="topic-metadata">

**Author:** [@TheDarkWizard](https://meta.discourse.org/u/TheDarkWizard)\
**Replies:** 5\
**Last updated:** [May 6, 2022, 6:54pm UTC](https://meta.discourse.org/t/hi-meta-we-are-back-lets-talk-about-markdown-it-and-bbcode/226260 "2022-05-06T18:54:04Z")

</div>

Disclaimer: I know that trying to shove BBCode back into Discourse is unconventional but its one of the few things stopping us from completely moving to Discourse and I’ve seen some really large sites (not many) use cust…

---

## [Redirect the home page of the forum](https://meta.discourse.org/t/redirect-the-home-page-of-the-forum/226304)

<div class="topic-metadata">

**Author:** [@Jacky2](https://meta.discourse.org/u/Jacky2)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 4:29pm UTC](https://meta.discourse.org/t/redirect-the-home-page-of-the-forum/226304 "2022-05-06T16:29:39Z")

</div>

Hi discourse community I discover step by step discourse and i need to redirect the home page to a landing page like this forum.domain.org/landing-page (create with the plugin discourse-landing-pages) The wizard setup …

---

## [How can I force users to fill in a custom field when it’s empty](https://meta.discourse.org/t/how-can-i-force-users-to-fill-in-a-custom-field-when-it-s-empty/225929)

<div class="topic-metadata">

**Author:** [@Jacky2](https://meta.discourse.org/u/Jacky2)\
**Replies:** 7\
**Last updated:** [May 6, 2022, 8:12am UTC](https://meta.discourse.org/t/how-can-i-force-users-to-fill-in-a-custom-field-when-it-s-empty/225929 "2022-05-06T08:12:48Z")

</div>

Hello Discourse community! I’m new to Discourse and trying to use my few ruby ​​knowledge. Thanks for your help ! Here is my project : I created custom fields to get to know a new user better and now I want to update …

---

## [Changes Requested to Support Discourse on TruffleRuby](https://meta.discourse.org/t/changes-requested-to-support-discourse-on-truffleruby/225578)

<div class="topic-metadata">

**Author:** [@bjfish](https://meta.discourse.org/u/bjfish)\
**Replies:** 5\
**Last updated:** [May 4, 2022, 8:10pm UTC](https://meta.discourse.org/t/changes-requested-to-support-discourse-on-truffleruby/225578 "2022-05-04T20:10:33Z")

</div>

I would like to request the following 3 changes to help support running Discourse on TruffleRuby: Change Requested Update bin/rails to disable unicorn when fork is not supported. Error \<internal:core\> core/kernel.rb:…

---

## [Adding pluginId to modifyClass when a mixin is used](https://meta.discourse.org/t/adding-pluginid-to-modifyclass-when-a-mixin-is-used/226148)

<div class="topic-metadata">

**Author:** [@keegan](https://meta.discourse.org/u/keegan)\
**Replies:** 0\
**Last updated:** [May 4, 2022, 5:56pm UTC](https://meta.discourse.org/t/adding-pluginid-to-modifyclass-when-a-mixin-is-used/226148 "2022-05-04T17:56:26Z")

</div>

I am trying to squash the warning: \[PLUGIN discourse-layouts\] To prevent errors in tests, add a \`pluginId\` key to your \`modifyClass\` call. This will ensure the modification is only applied once. However, in the case of…

---

## [How to reopen header-contents widget?](https://meta.discourse.org/t/how-to-reopen-header-contents-widget/225231)

<div class="topic-metadata">

**Author:** [@Deomid\_Fedorov](https://meta.discourse.org/u/Deomid_Fedorov)\
**Replies:** 5\
**Last updated:** [May 4, 2022, 10:50am UTC](https://meta.discourse.org/t/how-to-reopen-header-contents-widget/225231 "2022-05-04T10:50:25Z")

</div>

Hello! I am a beginer, so I hope for your help. I want to change the content in …. When I open the source files, I see that the “header-content” widget says: createWidget("header-contents", { tagName: "div.contents.c…

---

## [Problem with import image "Discourse Build Error" help pls](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282)

<div class="topic-metadata">

**Author:** [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
**Replies:** 6\
**Last updated:** [April 30, 2022, 7:10am UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282 "2022-04-30T07:10:04Z")

</div>

Hello everyone. I added a new icon to icons-sprite. svg I uploaded it to my theme After that I got an error How can I restore my discourse?

---

## [Specify User in POST request](https://meta.discourse.org/t/specify-user-in-post-request/225426)

<div class="topic-metadata">

**Author:** [@muratgozel](https://meta.discourse.org/u/muratgozel)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 2:14pm UTC](https://meta.discourse.org/t/specify-user-in-post-request/225426 "2022-04-27T14:14:02Z")

</div>

Hi everyone, I wonder if there is a possibility to specify a user while sending the post request. I want to create a topic/post on behalf of another user.

---

## [Can you get a post preview through API?](https://meta.discourse.org/t/can-you-get-a-post-preview-through-api/225366)

<div class="topic-metadata">

**Author:** [@Allen\_Chen](https://meta.discourse.org/u/Allen_Chen)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 12:37pm UTC](https://meta.discourse.org/t/can-you-get-a-post-preview-through-api/225366 "2022-04-27T12:37:24Z")

</div>

I’m trying to get a preview of each topic through the discourse API so that each topic has a small preview and then a read more… Through the API I couldn’t find anything that could help me get the preview of a specific …

---

## [How can you like a specific post through the API?](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851)

<div class="topic-metadata">

**Author:** [@Allen\_Chen](https://meta.discourse.org/u/Allen_Chen)\
**Replies:** 3\
**Last updated:** [April 20, 2022, 4:04pm UTC](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851 "2022-04-20T16:04:15Z")

</div>

Is there anything in the Discourse API that can help you like a post?

---

## [Adding a column to topic list](https://meta.discourse.org/t/adding-a-column-to-topic-list/224584)

<div class="topic-metadata">

**Author:** [@npx](https://meta.discourse.org/u/npx)\
**Replies:** 1\
**Last updated:** [April 18, 2022, 4:40am UTC](https://meta.discourse.org/t/adding-a-column-to-topic-list/224584 "2022-04-18T04:40:14Z")

</div>

Hi, I’d like to add a column to the topic listing shown on the homepage. Do I need to create both a theme component and a plugin to accomplish this? This entails overriding both app/assets/javascripts/discourse/app/temp…

---

## [Error while generating Scaffold in discourse](https://meta.discourse.org/t/error-while-generating-scaffold-in-discourse/224590)

<div class="topic-metadata">

**Author:** [@raghavendra](https://meta.discourse.org/u/raghavendra)\
**Replies:** 0\
**Last updated:** [April 18, 2022, 5:32am UTC](https://meta.discourse.org/t/error-while-generating-scaffold-in-discourse/224590 "2022-04-18T05:32:49Z")

</div>

Hi, my goal was to create a MVC architecture to \[Uploading files in Discourse\] using scaffold. while running the below command, I’m getting this error..! " rails generate scaffold Test image:string " The current schema…

---

## [How can you convert the date string to letters](https://meta.discourse.org/t/how-can-you-convert-the-date-string-to-letters/224501)

<div class="topic-metadata">

**Author:** [@Allen\_Chen](https://meta.discourse.org/u/Allen_Chen)\
**Replies:** 1\
**Last updated:** [April 16, 2022, 7:37pm UTC](https://meta.discourse.org/t/how-can-you-convert-the-date-string-to-letters/224501 "2022-04-16T19:37:30Z")

</div>

I’m trying to convert the date string to letters like July, January… How can you do that with this API? As now it returns: 2022-03-04T12:01:55.132Z I want it to be April,3

---

## [Update topic after editing time limit has passed](https://meta.discourse.org/t/update-topic-after-editing-time-limit-has-passed/59090)

<div class="topic-metadata">

**Author:** [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)\
**Replies:** 9\
**Last updated:** [April 14, 2022, 3:27pm UTC](https://meta.discourse.org/t/update-topic-after-editing-time-limit-has-passed/59090 "2022-04-14T15:27:27Z")

</div>

I would like to let users bump topic with a help of a button “Bump topic” as long as topic is not closed or archived. I’m almost there but stumbeled upon TopicController’s update method … more specifically upon guardian…

---

## [Where should I put the API keys of discourse so that I can fetch the posts?](https://meta.discourse.org/t/where-should-i-put-the-api-keys-of-discourse-so-that-i-can-fetch-the-posts/224177)

<div class="topic-metadata">

**Author:** [@Allen\_Chen](https://meta.discourse.org/u/Allen_Chen)\
**Replies:** 3\
**Last updated:** [April 13, 2022, 3:30pm UTC](https://meta.discourse.org/t/where-should-i-put-the-api-keys-of-discourse-so-that-i-can-fetch-the-posts/224177 "2022-04-13T15:30:34Z")

</div>

I’m trying to fetch the posts of my discourse but i don’t know where should I put my API keys. So I’m trying to do a fetch to a: https://{defaultHost}/posts/{id}.json but it is giving me error as I haven’t introduced the…

---

## [Can't send two of the same message](https://meta.discourse.org/t/cant-send-two-of-the-same-message/110594)

<div class="topic-metadata">

**Author:** [@macdja38](https://meta.discourse.org/u/macdja38)\
**Replies:** 7\
**Last updated:** [March 5, 2019, 9:49am UTC](https://meta.discourse.org/t/cant-send-two-of-the-same-message/110594 "2019-03-05T09:49:28Z")

</div>

If I create a post in a topic using the api here it works the first time but does not work on subsequent requests till the raw is changed.

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

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