# Development

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

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

**Page:** 72

---

## [Is the server running locally and accepting connections on that socket?](https://meta.discourse.org/t/is-the-server-running-locally-and-accepting-connections-on-that-socket/205307)

<div class="topic-metadata">

**Author:** [@natasha\_selvidge](https://meta.discourse.org/u/natasha_selvidge)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 5:08pm UTC](https://meta.discourse.org/t/is-the-server-running-locally-and-accepting-connections-on-that-socket/205307 "2021-10-07T17:08:35Z")

</div>

When I run d/rails s I get this error. Please help Thanks!

---

## [Reload/Refresh a widget on refresh of another widget](https://meta.discourse.org/t/reload-refresh-a-widget-on-refresh-of-another-widget/204356)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 12\
**Last updated:** [October 7, 2021, 12:57pm UTC](https://meta.discourse.org/t/reload-refresh-a-widget-on-refresh-of-another-widget/204356 "2021-10-07T12:57:47Z")

</div>

Hi All, We have created a widget “topic-timeline-bookmark” that displays the topic-level Bookmark button after the topic-timeline widget. Now, whenever we click on the topic-timeline bookmark button it displays the …

---

## ["BAD CSRF" when executing PUT using API, curl, and PHP](https://meta.discourse.org/t/bad-csrf-when-executing-put-using-api-curl-and-php/153422)

<div class="topic-metadata">

**Author:** [@hjalali](https://meta.discourse.org/u/hjalali)\
**Replies:** 5\
**Last updated:** [October 5, 2021, 3:39pm UTC](https://meta.discourse.org/t/bad-csrf-when-executing-put-using-api-curl-and-php/153422 "2021-10-05T15:39:09Z")

</div>

I have a very simple function that “should” work but it is not for some reason. Can someone help me understand what we are doing wrong. We keep getting the “BAD CSRF” error. public function changeName() { $url = 'htt…

---

## [Dependabot keeps opening PRs on my Github fork](https://meta.discourse.org/t/dependabot-keeps-opening-prs-on-my-github-fork/205201)

<div class="topic-metadata">

**Author:** [@dfabulich](https://meta.discourse.org/u/dfabulich)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 10:04pm UTC](https://meta.discourse.org/t/dependabot-keeps-opening-prs-on-my-github-fork/205201 "2021-10-04T22:04:24Z")

</div>

I filed a Github PR; in the course of doing so, I created a fork, and pushed it to Github. Since then, I keep getting spam from dependabot, opening PRs on my fork, inviting me to upgrade outdated dependencies. These dep…

---

## [What is the best way to remember the scroll position on main (categories) page?](https://meta.discourse.org/t/what-is-the-best-way-to-remember-the-scroll-position-on-main-categories-page/204561)

<div class="topic-metadata">

**Author:** [@4ong](https://meta.discourse.org/u/4ong)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 8:45pm UTC](https://meta.discourse.org/t/what-is-the-best-way-to-remember-the-scroll-position-on-main-categories-page/204561 "2021-10-04T20:45:59Z")

</div>

As I see many pages on Discourse remember the scroll position. But the categories page opens on top every time. And in case when it’s the main page and there are a lot of categories there - it provides not the best UX. …

---

## [Remove numbered circles that appear next to weblinks](https://meta.discourse.org/t/remove-numbered-circles-that-appear-next-to-weblinks/103156)

<div class="topic-metadata">

**Author:** [@christian\_01](https://meta.discourse.org/u/christian_01)\
**Replies:** 3\
**Last updated:** [November 30, 2018, 12:26pm UTC](https://meta.discourse.org/t/remove-numbered-circles-that-appear-next-to-weblinks/103156 "2018-11-30T12:26:07Z")

</div>

Any idea how to remove the little numbered circles that appear next to weblinks? Thank you in advance,

---

## [OptimizedImage specs are failing with Ruby 3.0.2](https://meta.discourse.org/t/optimizedimage-specs-are-failing-with-ruby-3-0-2/204930)

<div class="topic-metadata">

**Author:** [@yahonda](https://meta.discourse.org/u/yahonda)\
**Replies:** 3\
**Last updated:** [October 2, 2021, 12:21am UTC](https://meta.discourse.org/t/optimizedimage-specs-are-failing-with-ruby-3-0-2/204930 "2021-10-02T00:21:54Z")

</div>

I’m working on supporting Ruby 3 and got this spec failure. Steps to reproduce Run Ruby 3.0.2 $ cd discourse $ bundle exec rspec spec/models/optimized\_image\_spec.rb:10 Expected result It should finish successfully as…

---

## [How to trigger function on the click of Solution Button](https://meta.discourse.org/t/how-to-trigger-function-on-the-click-of-solution-button/204738)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 3\
**Last updated:** [October 1, 2021, 12:21pm UTC](https://meta.discourse.org/t/how-to-trigger-function-on-the-click-of-solution-button/204738 "2021-10-01T12:21:43Z")

</div>

Hi All, We are using discourse-solved plugin for accepting answers from the Users. Now we have to display/hide a popup at the bottom whenever the user accepts/unaccepts a reply as an answer by clicking on the Solution …

---

## [A New Python API](https://meta.discourse.org/t/a-new-python-api/191974)

<div class="topic-metadata">

**Author:** [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 8:25pm UTC](https://meta.discourse.org/t/a-new-python-api/191974 "2021-09-30T20:25:21Z")

</div>

I’m happy to share fluent-discourse, a new python package for consuming the Discourse API. There are already a few packages for consuming the Discourse API via Python. So why build another? The other discourse packag…

---

## [Stable extra-version cherry-pick policy](https://meta.discourse.org/t/stable-extra-version-cherry-pick-policy/204861)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 1\
**Last updated:** [September 30, 2021, 2:48pm UTC](https://meta.discourse.org/t/stable-extra-version-cherry-pick-policy/204861 "2021-09-30T14:48:03Z")

</div>

Pavilion is considering officially supporting stable for some of our plugins, starting with the Custom Wizard plugin. Various folks have been asking for an alternative to tests-passed support for some of our plugins (pa…

---

## [Composer drag and drop with custom uploader](https://meta.discourse.org/t/composer-drag-and-drop-with-custom-uploader/204775)

<div class="topic-metadata">

**Author:** [@Sören\_Geier](https://meta.discourse.org/u/S%C3%B6ren_Geier)\
**Replies:** 2\
**Last updated:** [September 29, 2021, 7:49pm UTC](https://meta.discourse.org/t/composer-drag-and-drop-with-custom-uploader/204775 "2021-09-29T19:49:39Z")

</div>

Hi, I would like to extend the drag and drop functionality on the composer to allow for a more sophisticated process to kick off. so for example if ppl drag a large video file there I want custom Javascript to fire in o…

---

## [How to Start Sidekiq When Using Puma](https://meta.discourse.org/t/how-to-start-sidekiq-when-using-puma/143649)

<div class="topic-metadata">

**Author:** [@Mikitos](https://meta.discourse.org/u/Mikitos)\
**Replies:** 7\
**Last updated:** [September 28, 2021, 6:49am UTC](https://meta.discourse.org/t/how-to-start-sidekiq-when-using-puma/143649 "2021-09-28T06:49:49Z")

</div>

I’ve searched everywhere on how to start sidekiq with puma and tried my own attampts, however it seems that there isn’t a definite answer available. I’m using a Windows 10 Environment, so my setup is based on this guide…

---

## [Gemfile and plugins improvements](https://meta.discourse.org/t/gemfile-and-plugins-improvements/204119)

<div class="topic-metadata">

**Author:** [@edwardila](https://meta.discourse.org/u/edwardila)\
**Replies:** 3\
**Last updated:** [September 28, 2021, 6:39am UTC](https://meta.discourse.org/t/gemfile-and-plugins-improvements/204119 "2021-09-28T06:39:23Z")

</div>

Hi, Discourse team I want to offer you an interesting solution for Gemfile in the plugin directory and adding external gems if they are needed # Load plugins' Gemfiles Dir.glob File.expand\_path("../plugins/\*/{Gemfile}"…

---

## [Problems with git clone ](https://meta.discourse.org/t/problems-with-git-clone/204499)

<div class="topic-metadata">

**Author:** [@Harold\_Burbano](https://meta.discourse.org/u/Harold_Burbano)\
**Replies:** 5\
**Last updated:** [September 27, 2021, 8:09am UTC](https://meta.discourse.org/t/problems-with-git-clone/204499 "2021-09-27T08:09:36Z")

</div>

I have a problem cloning a repo when I use : git clone https://github.com/burbanox/responsive-design.git throw me an error : fatal: unable to access 'https://github.com/burbanox/responsive-design.git/': gnutls\_handsha…

---

## [\`bundle exec rails server\` raises \`Job exception: wrong number of arguments (given 4, expected 3)\` with Ruby 3.0.2](https://meta.discourse.org/t/bundle-exec-rails-server-raises-job-exception-wrong-number-of-arguments-given-4-expected-3-with-ruby-3-0-2/204105)

<div class="topic-metadata">

**Author:** [@yahonda](https://meta.discourse.org/u/yahonda)\
**Replies:** 2\
**Last updated:** [September 27, 2021, 7:50am UTC](https://meta.discourse.org/t/bundle-exec-rails-server-raises-job-exception-wrong-number-of-arguments-given-4-expected-3-with-ruby-3-0-2/204105 "2021-09-27T07:50:13Z")

</div>

I’m interested in running Discourse with Ruby 3. I’d like to know how to address Job exception: wrong number of arguments (given 4, expected 3) with Ruby 3. Steps to reproduce $ ruby -v ruby 3.0.2p107 (2021-07-07 rev…

---

## [Setting up discourse locally](https://meta.discourse.org/t/setting-up-discourse-locally/204307)

<div class="topic-metadata">

**Author:** [@Gourav\_Sardana](https://meta.discourse.org/u/Gourav_Sardana)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 6:59pm UTC](https://meta.discourse.org/t/setting-up-discourse-locally/204307 "2021-09-23T18:59:07Z")

</div>

Hey everyone, I saw this project via github. I want to contribute to the discourse forum. Please let me know how can i setup it locally and how i can start. I have an experience on ruby. I’m not able to setup. I instal…

---

## [How \`lib\` folder of plugins are added to the \`$LOAD\_PATH\`](https://meta.discourse.org/t/how-lib-folder-of-plugins-are-added-to-the-load-path/204309)

<div class="topic-metadata">

**Author:** [@AhmedLoud](https://meta.discourse.org/u/AhmedLoud)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 5:11pm UTC](https://meta.discourse.org/t/how-lib-folder-of-plugins-are-added-to-the-load-path/204309 "2021-09-23T17:11:24Z")

</div>

I noticed that when creating a plugin, if I add a lib folder and some files in this lib folder then I can use require because it is added to the $LOAD\_PATH. For instance the docker\_manager plugin has a lib/docker\_manage…

---

## [JS widget/code (first post)](https://meta.discourse.org/t/js-widget-code-first-post/204284)

<div class="topic-metadata">

**Author:** [@valsha](https://meta.discourse.org/u/valsha)\
**Replies:** 3\
**Last updated:** [September 23, 2021, 12:56pm UTC](https://meta.discourse.org/t/js-widget-code-first-post/204284 "2021-09-23T12:56:29Z")

</div>

Good day, How can I add a custom (my own) JS widget/code to the end of the first post in the topic? Thank you.

---

## [What is the difference between raw.hbs handlerbar files and only .hbs handlerbar files?](https://meta.discourse.org/t/what-is-the-difference-between-raw-hbs-handlerbar-files-and-only-hbs-handlerbar-files/58565)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 10\
**Last updated:** [September 22, 2021, 2:01pm UTC](https://meta.discourse.org/t/what-is-the-difference-between-raw-hbs-handlerbar-files-and-only-hbs-handlerbar-files/58565 "2021-09-22T14:01:46Z")

</div>

I noticied that few plugin outlet like topic-list-after-title require raw.hbs file while other require only hbs file. I did search in the handlebars documentation, but I could see anything as raw hbs file. I checked i…

---

## [Any plans to move to Vue from Ember?](https://meta.discourse.org/t/any-plans-to-move-to-vue-from-ember/204171)

<div class="topic-metadata">

**Author:** [@tenzan](https://meta.discourse.org/u/tenzan)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 7:20am UTC](https://meta.discourse.org/t/any-plans-to-move-to-vue-from-ember/204171 "2021-09-22T07:20:24Z")

</div>

Just a post out of curiosity if there are any plans to move to VueJS? If I’m not mistaken, at the time when Discourse development just started, VueJS was not that popular as it is nowadays. I understand, it’s a huge wo…

---

## [API support for deleting categories?](https://meta.discourse.org/t/api-support-for-deleting-categories/204046)

<div class="topic-metadata">

**Author:** [@Andy\_Price](https://meta.discourse.org/u/Andy_Price)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 11:24pm UTC](https://meta.discourse.org/t/api-support-for-deleting-categories/204046 "2021-09-20T23:24:53Z")

</div>

I am working with the API to build an integration with a Drupal site. One function I need to add is giving users the ability to delete a category, I see that it is not listed on the API documentation page here, but I did…

---

## [Get back Username with API Key?](https://meta.discourse.org/t/get-back-username-with-api-key/204030)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 7:37pm UTC](https://meta.discourse.org/t/get-back-username-with-api-key/204030 "2021-09-20T19:37:05Z")

</div>

Hi There. When using the per-user api key process to get back a per-user api key from discourse, is it also possible to get back the user’s username at the same time?

---

## [Plugin to show full name only to users of the same group](https://meta.discourse.org/t/plugin-to-show-full-name-only-to-users-of-the-same-group/203813)

<div class="topic-metadata">

**Author:** [@matewka](https://meta.discourse.org/u/matewka)\
**Replies:** 8\
**Last updated:** [September 18, 2021, 10:12am UTC](https://meta.discourse.org/t/plugin-to-show-full-name-only-to-users-of-the-same-group/203813 "2021-09-18T10:12:21Z")

</div>

Hi everyone, I’m googling my problem for a few weeks already and I’m pretty close to giving up. The background: I develop and maintain a multi-tenant admin panel for sport clubs. My self-hosted discourse forum is ava…

---

## [More details on how the Redis cache is utilized?](https://meta.discourse.org/t/more-details-on-how-the-redis-cache-is-utilized/203678)

<div class="topic-metadata">

**Author:** [@griegm](https://meta.discourse.org/u/griegm)\
**Replies:** 3\
**Last updated:** [September 17, 2021, 9:49pm UTC](https://meta.discourse.org/t/more-details-on-how-the-redis-cache-is-utilized/203678 "2021-09-17T21:49:08Z")

</div>

Hey there! I’ve been performing some load tests on a Discourse instance and I noticed that when repeatedly fetching the same comment thread over and over the Redis cache hit rate went down, rather than up, which was a b…

---

## [Have a question about plugin development and ember](https://meta.discourse.org/t/have-a-question-about-plugin-development-and-ember/203755)

<div class="topic-metadata">

**Author:** [@edwardila](https://meta.discourse.org/u/edwardila)\
**Replies:** 1\
**Last updated:** [September 16, 2021, 8:08pm UTC](https://meta.discourse.org/t/have-a-question-about-plugin-development-and-ember/203755 "2021-09-16T20:08:16Z")

</div>

Hi guys I developing new plugin with drag and drop sorting list for my requirements. How can i use ember package like ember i ember-drag-sort? Is it possible? I use discourse-docker for deployment and i need to create …

---

## [Bizarre off-by-one post update error](https://meta.discourse.org/t/bizarre-off-by-one-post-update-error/203669)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 7:14pm UTC](https://meta.discourse.org/t/bizarre-off-by-one-post-update-error/203669 "2021-09-15T19:14:08Z")

</div>

I’m trying to update a set of posts in a script in rails. It seems that there is some strange off-by-one behavior where one post gets updated with the previous post’s value. I moved all of these updates to directly do a…

---

## [Plugin outlet to change the user list (/u)](https://meta.discourse.org/t/plugin-outlet-to-change-the-user-list-u/203453)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [September 13, 2021, 9:34pm UTC](https://meta.discourse.org/t/plugin-outlet-to-change-the-user-list-u/203453 "2021-09-13T21:34:12Z")

</div>

I have a user custom field that it a link and I want to make it be clckable in the user list (/u). (Retired) Use an ID in a custom user field to link to a user's external profile shows how to do this in the user card an…

---

## [How to get mentions for a specific user via the API?](https://meta.discourse.org/t/how-to-get-mentions-for-a-specific-user-via-the-api/203113)

<div class="topic-metadata">

**Author:** [@jsimon6](https://meta.discourse.org/u/jsimon6)\
**Replies:** 3\
**Last updated:** [September 10, 2021, 1:08pm UTC](https://meta.discourse.org/t/how-to-get-mentions-for-a-specific-user-via-the-api/203113 "2021-09-10T13:08:01Z")

</div>

How can I get mentions for a specific user via the API? I have not found anything for this in the docs, and I can’t find anything in the source either. We are wanting to show user mentions in our 3rd party site. Enough …

---

## [\[Early-WIP\] The Single-site App for Discourse](https://meta.discourse.org/t/early-wip-the-single-site-app-for-discourse/203082)

<div class="topic-metadata">

**Author:** [@lixiang810](https://meta.discourse.org/u/lixiang810)\
**Replies:** 3\
**Last updated:** [September 10, 2021, 12:21am UTC](https://meta.discourse.org/t/early-wip-the-single-site-app-for-discourse/203082 "2021-09-10T00:21:06Z")

</div>

Hello everyone there. I’m writing a single-site app for discourse using expo now. Here’s my source code. You can think of it as a discourse app starter: everyone can create their own app for any discourse site they want. …

---

## [How to refer to \`api.addPosterIcon\` from inside of a function](https://meta.discourse.org/t/how-to-refer-to-api-addpostericon-from-inside-of-a-function/202975)

<div class="topic-metadata">

**Author:** [@Ilia](https://meta.discourse.org/u/Ilia)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 4:48pm UTC](https://meta.discourse.org/t/how-to-refer-to-api-addpostericon-from-inside-of-a-function/202975 "2021-09-08T16:48:28Z")

</div>

Hi, Could anyone please advise how to refer to api.addPosterIcon from inside of a function? Example: \<script type="text/discourse-plugin" version="0.8"\> api.onPageChange(url =\> { if (Discourse?.currentUser?.…

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

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