# Development

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

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

**Page:** 60

---

## [model.bumpedAt returns date of topic OP](https://meta.discourse.org/t/model-bumpedat-returns-date-of-topic-op/239983)

<div class="topic-metadata">

**Author:** [@CT075](https://meta.discourse.org/u/CT075)\
**Replies:** 0\
**Last updated:** [September 25, 2022, 2:53am UTC](https://meta.discourse.org/t/model-bumpedat-returns-date-of-topic-op/239983 "2022-09-25T02:53:57Z")

</div>

Hi, I was attempting to create a theme component to make users confirm that they want to bump topics older than a certain date, following the advice in this old post. However, I’ve been getting reports on my forum of sp…

---

## [Difference in discourse theme creator](https://meta.discourse.org/t/difference-in-discourse-theme-creator/239807)

<div class="topic-metadata">

**Author:** [@dorl-moveo](https://meta.discourse.org/u/dorl-moveo)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 10:06pm UTC](https://meta.discourse.org/t/difference-in-discourse-theme-creator/239807 "2022-09-23T22:06:13Z")

</div>

Hi, I am develop new theme and I faced an issue when I try to run my theme on the production environment. On discourse theme creator I have \<table class="topic-list ember-view\> which contain with all the topics. But on…

---

## [How to add a user bio to the groups index page?](https://meta.discourse.org/t/how-to-add-a-user-bio-to-the-groups-index-page/117792)

<div class="topic-metadata">

**Author:** [@bartv](https://meta.discourse.org/u/bartv)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 11:09am UTC](https://meta.discourse.org/t/how-to-add-a-user-bio-to-the-groups-index-page/117792 "2019-05-15T11:09:45Z")

</div>

Hi, I’m in the process of customising the information on our groups index page with a theme component. I’d like to add the user bio of each member. I found the template to override and am able to make changes this way. …

---

## [Get API Key only for adding/removing users from a group](https://meta.discourse.org/t/get-api-key-only-for-adding-removing-users-from-a-group/239850)

<div class="topic-metadata">

**Author:** [@Felixkruemel](https://meta.discourse.org/u/Felixkruemel)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 5:58pm UTC](https://meta.discourse.org/t/get-api-key-only-for-adding-removing-users-from-a-group/239850 "2022-09-23T17:58:51Z")

</div>

Hey, I want to create a simple script to add a user to an existing group inside my Discourse instance. According to the docs this is done with the /groups endpoint. However when creating an API key I can’t specify a sc…

---

## [Granular API key restriction missing a lot of endpoints](https://meta.discourse.org/t/granular-api-key-restriction-missing-a-lot-of-endpoints/239849)

<div class="topic-metadata">

**Author:** [@helmi](https://meta.discourse.org/u/helmi)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 5:55pm UTC](https://meta.discourse.org/t/granular-api-key-restriction-missing-a-lot-of-endpoints/239849 "2022-09-23T17:55:44Z")

</div>

Hi, I am looking for a way to enable access to our Forum’s API but limit this access to the /groups endpoint or even better to the AddGroupMember Method. The granular settings in the admin panel only seem to allow to li…

---

## [Developing a component or plugin similar to topic list thumbnails or topic list previews](https://meta.discourse.org/t/developing-a-component-or-plugin-similar-to-topic-list-thumbnails-or-topic-list-previews/239851)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 11:29am UTC](https://meta.discourse.org/t/developing-a-component-or-plugin-similar-to-topic-list-thumbnails-or-topic-list-previews/239851 "2022-09-23T11:29:42Z")

</div>

The purpose: keep the topic list pretty much “vanilla”, but improves the visibility of “gallery” topics (topics that are made for people to post their pictures, with few discussion) and have a glance at the newly posted …

---

## [Redirect to page after purchase](https://meta.discourse.org/t/redirect-to-page-after-purchase/239146)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [September 18, 2022, 9:58pm UTC](https://meta.discourse.org/t/redirect-to-page-after-purchase/239146 "2022-09-18T21:58:57Z")

</div>

I have add\_model\_callback(DiscourseSubscriptions::Customer, :after\_save) do ... in a plugin. Most purchases result in a “server” (a custom model) being created. Today, I’ve managed to learn how to make other places wher…

---

## [Theme unexplainably broke](https://meta.discourse.org/t/theme-unexplainably-broke/239295)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Replies:** 5\
**Last updated:** [September 18, 2022, 2:42pm UTC](https://meta.discourse.org/t/theme-unexplainably-broke/239295 "2022-09-18T14:42:03Z")

</div>

Hello, Out of nowhere at some point today, my theme stopped working properly. The background is no longer appearing; and multiple blur elements are not working. I attempted to roll back to a working state but…

---

## [How to find a tag using the plugin-api](https://meta.discourse.org/t/how-to-find-a-tag-using-the-plugin-api/238209)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 2\
**Last updated:** [September 17, 2022, 10:04am UTC](https://meta.discourse.org/t/how-to-find-a-tag-using-the-plugin-api/238209 "2022-09-17T10:04:13Z")

</div>

I have the following import statement in my code (javascript side): import Tag from "discourse/models/tag"; However, I can’t use it to retrieve a tag object by it’s name. My goal is to obtain the tag description, but I…

---

## [Accessing custom user fields via JavaScript/plugin API](https://meta.discourse.org/t/accessing-custom-user-fields-via-javascript-plugin-api/239035)

<div class="topic-metadata">

**Author:** [@Karpfen](https://meta.discourse.org/u/Karpfen)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 8:20pm UTC](https://meta.discourse.org/t/accessing-custom-user-fields-via-javascript-plugin-api/239035 "2022-09-16T20:20:37Z")

</div>

Hello, I was trying to implement Our solution for blurring NSFW content - #5 by bartv - but unfortunately the code did not work anymore. I am kind of stuck here and i couldn’t find any documentation for the discourse Ja…

---

## [File for modifying the SQL query for create 'post'?](https://meta.discourse.org/t/file-for-modifying-the-sql-query-for-create-post/239173)

<div class="topic-metadata">

**Author:** [@charnelpezai](https://meta.discourse.org/u/charnelpezai)\
**Replies:** 6\
**Last updated:** [September 16, 2022, 1:27pm UTC](https://meta.discourse.org/t/file-for-modifying-the-sql-query-for-create-post/239173 "2022-09-16T13:27:20Z")

</div>

Hi guys, to give some background, I’m trying to add another column to the table schema of posts table, I want to add another column which is meta\_tag\_id. I got to a point where I can pass the data that I want to store in…

---

## [Unable to setup discourse](https://meta.discourse.org/t/unable-to-setup-discourse/238985)

<div class="topic-metadata">

**Author:** [@ksavani](https://meta.discourse.org/u/ksavani)\
**Replies:** 8\
**Last updated:** [September 15, 2022, 3:11pm UTC](https://meta.discourse.org/t/unable-to-setup-discourse/238985 "2022-09-15T15:11:44Z")

</div>

Hello, I am installing discourse on my Ubuntu machine and i am following this article https://meta.discourse.org/t/install-discourse-on-ubuntu-for-development/14727 but i am gettine issue on below command: bundle exec r…

---

## [Sidekiq hamburger menu not opening on mobile](https://meta.discourse.org/t/sidekiq-hamburger-menu-not-opening-on-mobile/232632)

<div class="topic-metadata">

**Author:** [@crcoli7307](https://meta.discourse.org/u/crcoli7307)\
**Replies:** 3\
**Last updated:** [September 15, 2022, 7:42am UTC](https://meta.discourse.org/t/sidekiq-hamburger-menu-not-opening-on-mobile/232632 "2022-09-15T07:42:56Z")

</div>

Hello, Today I noticed on my forum’s mobile sidekiq panel that the hamburger menu would not open. I’m not sure if this bug should be reported to Discourse or to Sidekiq but observe the video below. In the video I…

---

## [How to export more than the 10,000 limit?](https://meta.discourse.org/t/how-to-export-more-than-the-10-000-limit/249462)

<div class="topic-metadata">

**Author:** [@nathank](https://meta.discourse.org/u/nathank)\
**Replies:** 3\
**Last updated:** [September 14, 2022, 3:58pm UTC](https://meta.discourse.org/t/how-to-export-more-than-the-10-000-limit/249462 "2022-09-14T15:58:11Z")

</div>

Dumb question - that ceiling is looming closer for one of our forums. Can we exceed it without forking the plugin? It looks like there is a hidden setting for the default 1000 display limit, allowing it to go up to 10,…

---

## [Constructing web accessible links to posts and topics programmatically](https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888)

<div class="topic-metadata">

**Author:** [@balazswmann](https://meta.discourse.org/u/balazswmann)\
**Replies:** 3\
**Last updated:** [September 14, 2022, 1:32am UTC](https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888 "2022-09-14T01:32:04Z")

</div>

Hi everyone, In case of a 3rd party integration when I send a search request to the API endpoint, I get back post and topic properties such as ID, title, author, etc. My question is: what’s the “correct” way to constru…

---

## [Eslint: Expected { after 'while' condition](https://meta.discourse.org/t/eslint-expected-after-while-condition/236003)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [September 13, 2022, 10:53pm UTC](https://meta.discourse.org/t/eslint-expected-after-while-condition/236003 "2022-09-13T22:53:11Z")

</div>

I forked Formatting toolbar to add some very custom formatting stuff. It has discourse-formatting-toolbar/assets/javascripts/lib/discourse-markdown/formatting\_bbcode.js at master · MonDiscourse/discourse-formatting-tool…

---

## [this.store.findFiltered returning unexpected results in Theme Component](https://meta.discourse.org/t/this-store-findfiltered-returning-unexpected-results-in-theme-component/238864)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 7\
**Last updated:** [September 13, 2022, 2:14pm UTC](https://meta.discourse.org/t/this-store-findfiltered-returning-unexpected-results-in-theme-component/238864 "2022-09-13T14:14:41Z")

</div>

I’m slightly foxed, but wonder if I’m using this in an unsafe context. This code is meant to return and populate a property with a list of tagged topics, but it’s returning a much bigger, unfiltered list (ignoring the f…

---

## [How to get DOM elements and change onClick functionality](https://meta.discourse.org/t/how-to-get-dom-elements-and-change-onclick-functionality/238786)

<div class="topic-metadata">

**Author:** [@Sushanth\_Ps](https://meta.discourse.org/u/Sushanth_Ps)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 9:56am UTC](https://meta.discourse.org/t/how-to-get-dom-elements-and-change-onclick-functionality/238786 "2022-09-13T09:56:20Z")

</div>

Hey, Any idea on how I can get DOM elements on discourse without having to use a setTimeout and a querySelector. Cause currently I do something like this:- setTimeout(() =\> { var createTopicButton …

---

## [Trying to create a theme to access posts last clicked, Can someone tell me how can i access the state of the posts being clicked?](https://meta.discourse.org/t/trying-to-create-a-theme-to-access-posts-last-clicked-can-someone-tell-me-how-can-i-access-the-state-of-the-posts-being-clicked/238845)

<div class="topic-metadata">

**Author:** [@antariksh17](https://meta.discourse.org/u/antariksh17)\
**Replies:** 0\
**Last updated:** [September 13, 2022, 3:13am UTC](https://meta.discourse.org/t/trying-to-create-a-theme-to-access-posts-last-clicked-can-someone-tell-me-how-can-i-access-the-state-of-the-posts-being-clicked/238845 "2022-09-13T03:13:06Z")

</div>

I am trying to read the repository of discourse in order to develop a plugin, I am failing to understand on how to access the or create a state or array which stores the id of last 3 clicked posts by user, so it can disp…

---

## [Installing a git-based gem from a discourse plugin](https://meta.discourse.org/t/installing-a-git-based-gem-from-a-discourse-plugin/238657)

<div class="topic-metadata">

**Author:** [@sreinert](https://meta.discourse.org/u/sreinert)\
**Replies:** 4\
**Last updated:** [September 11, 2022, 1:15pm UTC](https://meta.discourse.org/t/installing-a-git-based-gem-from-a-discourse-plugin/238657 "2022-09-11T13:15:38Z")

</div>

First of all, I’m brand new to Ruby on Rails and Discourse plugin development, so if there’s a better direction, I’d appreciate it. Overview I have an internal Discourse plugin fork (discourse-ldap-auth) which I’m bring…

---

## [How to wait for this.store.find promise to finish before loading a widget](https://meta.discourse.org/t/how-to-wait-for-this-store-find-promise-to-finish-before-loading-a-widget/238574)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 0\
**Last updated:** [September 9, 2022, 5:07pm UTC](https://meta.discourse.org/t/how-to-wait-for-this-store-find-promise-to-finish-before-loading-a-widget/238574 "2022-09-09T17:07:39Z")

</div>

I am using a widget where its data is filled by obtainin some tag descriptions. I retrieve the descriptions as follows: // tag\_arr: variable containing an array of tag names. tag\_arr.forEach(tag =\> { this.store.find("…

---

## [How can I log a value of a variable using \`console.log()\` or something like this?](https://meta.discourse.org/t/how-can-i-log-a-value-of-a-variable-using-console-log-or-something-like-this/238552)

<div class="topic-metadata">

**Author:** [@charnelpezai](https://meta.discourse.org/u/charnelpezai)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 11:55am UTC](https://meta.discourse.org/t/how-can-i-log-a-value-of-a-variable-using-console-log-or-something-like-this/238552 "2022-09-09T11:55:35Z")

</div>

Hi guys, I’m trying to log a variable on my Discourse app in a development environment. See this code snippet for reference: postStream.get("posts").forEach((post) =\> { // I want to log the \`post\` variable …

---

## [Hide certain group settings if group name includes a specific name](https://meta.discourse.org/t/hide-certain-group-settings-if-group-name-includes-a-specific-name/237917)

<div class="topic-metadata">

**Author:** [@AquaL1te](https://meta.discourse.org/u/AquaL1te)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 2:59pm UTC](https://meta.discourse.org/t/hide-certain-group-settings-if-group-name-includes-a-specific-name/237917 "2022-09-08T14:59:35Z")

</div>

I’ve created a custom plugin to include some extra fields for groups. But they only apply to groups with the name “chapter” in it. So it doesn’t make sense to have them in groups for other purposes. Is there some way I c…

---

## [\[API\] "Can't verify CSRF token authenticity" when attempting to update avatar for user](https://meta.discourse.org/t/api-cant-verify-csrf-token-authenticity-when-attempting-to-update-avatar-for-user/238437)

<div class="topic-metadata">

**Author:** [@rxmie](https://meta.discourse.org/u/rxmie)\
**Replies:** 0\
**Last updated:** [September 8, 2022, 10:32am UTC](https://meta.discourse.org/t/api-cant-verify-csrf-token-authenticity-when-attempting-to-update-avatar-for-user/238437 "2022-09-08T10:32:04Z")

</div>

Similar issue here - Cant update email via API - invalid\_access error What I see on the server logs: Started PUT "/u/brodie-16/preferences/avatar/pick.json" for 24.17.99.993 at 2022-09-08 10:28:10 +0000 Processing by U…

---

## [Converting a dom element to virtual-dom in widgets](https://meta.discourse.org/t/converting-a-dom-element-to-virtual-dom-in-widgets/238346)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 3\
**Last updated:** [September 7, 2022, 3:47pm UTC](https://meta.discourse.org/t/converting-a-dom-element-to-virtual-dom-in-widgets/238346 "2022-09-07T15:47:16Z")

</div>

I currently have a dom element that is a result of a custom katex render. It is generated like this: var dom\_element = document.createElement("p") dom\_element.innerHTML = "some text that contain latex" renderMathInElem…

---

## [Category API request downloads all topics](https://meta.discourse.org/t/category-api-request-downloads-all-topics/238260)

<div class="topic-metadata">

**Author:** [@nocibambi](https://meta.discourse.org/u/nocibambi)\
**Replies:** 3\
**Last updated:** [September 7, 2022, 10:21am UTC](https://meta.discourse.org/t/category-api-request-downloads-all-topics/238260 "2022-09-07T10:21:10Z")

</div>

I am creating analytics about the usage of our forum, and I download information about the topics of each category. However, the request does not pull all the topics all the time. I only noticed this because it had prev…

---

## [Customize topic list entries (sorting, grouping, filtering) for better organization](https://meta.discourse.org/t/customize-topic-list-entries-sorting-grouping-filtering-for-better-organization/236712)

<div class="topic-metadata">

**Author:** [@Sören\_Geier](https://meta.discourse.org/u/S%C3%B6ren_Geier)\
**Replies:** 11\
**Last updated:** [September 6, 2022, 10:15am UTC](https://meta.discourse.org/t/customize-topic-list-entries-sorting-grouping-filtering-for-better-organization/236712 "2022-09-06T10:15:54Z")

</div>

TLDR: Whats the fastest way to change how filteredTopics (Line 26) is comprised. I would like to have full control of which topics (with what properties) are collected. Hi community, I have been using the GitHub - di…

---

## [Want to display topic category name and tags above the topic-footer-buttons](https://meta.discourse.org/t/want-to-display-topic-category-name-and-tags-above-the-topic-footer-buttons/237819)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 5\
**Last updated:** [September 5, 2022, 5:51am UTC](https://meta.discourse.org/t/want-to-display-topic-category-name-and-tags-above-the-topic-footer-buttons/237819 "2022-09-05T05:51:22Z")

</div>

Hi Team, I want to display the topic category name and tags above the topic-footer-buttons and below the same as displayed below the topic title as shown below: I have seen that we have PluginOutlet “topic-above-foo…

---

## [Docker development with tagged version of discourse](https://meta.discourse.org/t/docker-development-with-tagged-version-of-discourse/237816)

<div class="topic-metadata">

**Author:** [@codechef](https://meta.discourse.org/u/codechef)\
**Replies:** 3\
**Last updated:** [September 4, 2022, 4:50am UTC](https://meta.discourse.org/t/docker-development-with-tagged-version-of-discourse/237816 "2022-09-04T04:50:18Z")

</div>

I’m trying to start a development environment with the latest tagged version of discourse. It was working until a new docker image was downloaded (when I d/boot\_dev --init) and I now get errors. It seems that the docker …

---

## [Find pinned topic via API endpoint](https://meta.discourse.org/t/find-pinned-topic-via-api-endpoint/237625)

<div class="topic-metadata">

**Author:** [@Sören\_Geier](https://meta.discourse.org/u/S%C3%B6ren_Geier)\
**Replies:** 1\
**Last updated:** [September 1, 2022, 6:26pm UTC](https://meta.discourse.org/t/find-pinned-topic-via-api-endpoint/237625 "2022-09-01T18:26:43Z")

</div>

Hi Discourse community! For a customization task in our hosted forum, I am looking for an endpoint to gather pinned topics (read or unread by user, doesn’t matter). I can get all /latest.json topics and check for Topic…

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

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