# Development

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

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

**Page:** 64

---

## [Non-displaying content / new page](https://meta.discourse.org/t/non-displaying-content-new-page/230862)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 3\
**Last updated:** [June 23, 2022, 10:57am UTC](https://meta.discourse.org/t/non-displaying-content-new-page/230862 "2022-06-23T10:57:37Z")

</div>

If I create a page in my ID (vs code) using rails generate controller Pages newsletter and then I open it via http: // localhost: 4200 / pages / newsletter so it doesn’t throw any error, but it tells me that “The page…

---

## [Verify that entered username is theirs or get the username or their stats after getting logged in](https://meta.discourse.org/t/verify-that-entered-username-is-theirs-or-get-the-username-or-their-stats-after-getting-logged-in/230846)

<div class="topic-metadata">

**Author:** [@creamit](https://meta.discourse.org/u/creamit)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 6:59am UTC](https://meta.discourse.org/t/verify-that-entered-username-is-theirs-or-get-the-username-or-their-stats-after-getting-logged-in/230846 "2022-06-23T06:59:53Z")

</div>

Not getting into details but I am making a web portal which gives users a reputation on the basis of some parameters defined by us. For that, we need to fetch the summary(/u/{username}/summary.json) details. But later I …

---

## [API bug : final "." in username causes error](https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677)

<div class="topic-metadata">

**Author:** [@Daniel\_McQuillen](https://meta.discourse.org/u/Daniel_McQuillen)\
**Replies:** 5\
**Last updated:** [June 22, 2022, 4:20am UTC](https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677 "2022-06-22T04:20:01Z")

</div>

We’re using the API to integrate Discourse into our site (via pydiscourse). When it’s time to add a user to a Discourse group via the API, pydiscourse uses the PUT method to the Discourse API url: /admin/groups/{group…

---

## [How to Disable a HTML Button in a Handlebars Template?](https://meta.discourse.org/t/how-to-disable-a-html-button-in-a-handlebars-template/230664)

<div class="topic-metadata">

**Author:** [@p0fi](https://meta.discourse.org/u/p0fi)\
**Replies:** 0\
**Last updated:** [June 21, 2022, 8:07pm UTC](https://meta.discourse.org/t/how-to-disable-a-html-button-in-a-handlebars-template/230664 "2022-06-21T20:07:16Z")

</div>

I have a theme component using handlebars. This component is a footer and does contain a HTML form button. I need to disable this button once it has been clicked. This is usually pretty straight forward and would look li…

---

## [Trouble with ActiveSupport::MessageEncryptor::InvalidMessage in plugin](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 5\
**Last updated:** [June 21, 2022, 2:46pm UTC](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957 "2022-06-21T14:46:50Z")

</div>

The update to 2.9.0.beta5 is causing an issue with my dashboard plugin. Something is triggering an error on one view of the plugin: Started GET "/pfaffmanager/servers" for 73.147.117.173 at 2022-06-14 17:53:31 +0000 Pro…

---

## [How to auto set username value in input place?](https://meta.discourse.org/t/how-to-auto-set-username-value-in-input-place/230478)

<div class="topic-metadata">

**Author:** [@DragonByte](https://meta.discourse.org/u/DragonByte)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 1:56pm UTC](https://meta.discourse.org/t/how-to-auto-set-username-value-in-input-place/230478 "2022-06-20T13:56:48Z")

</div>

Hello! I found this script to show username in text banner: Display username when login in banner - #10 by tshenry \<script type="text/discourse-plugin" version="0.8.18"\> api.onPageChange(() =\> { if(api.getC…

---

## [Flair\_url is always NULL in SQL query?](https://meta.discourse.org/t/flair-url-is-always-null-in-sql-query/230555)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 4\
**Last updated:** [June 21, 2022, 12:31pm UTC](https://meta.discourse.org/t/flair-url-is-always-null-in-sql-query/230555 "2022-06-21T12:31:59Z")

</div>

I’m working on a plugin that uses the Group flair image. When I perform a SQL query to grab the flair\_url from the groups table, it returns NULL for every group despite having an image uploaded. The Discourse data explo…

---

## [PR: compatability issues with Sidekiq 6.5.0](https://meta.discourse.org/t/pr-compatability-issues-with-sidekiq-6-5-0/230294)

<div class="topic-metadata">

**Author:** [@dmke](https://meta.discourse.org/u/dmke)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 2:14am UTC](https://meta.discourse.org/t/pr-compatability-issues-with-sidekiq-6-5-0/230294 "2022-06-21T02:14:43Z")

</div>

Just a heads up: Sidekiq v6.5.0 has dropped Sidekiq::ExceptionHandler, which is used by mini\_scheduler. I’ve created a PR to fix this issue: fix Sidekiq 6.5 compatability by dmke · Pull Request #14 · discourse/mini\_sch…

---

## [How to add topic excerpt to all my topics](https://meta.discourse.org/t/how-to-add-topic-excerpt-to-all-my-topics/148903)

<div class="topic-metadata">

**Author:** [@duranmla](https://meta.discourse.org/u/duranmla)\
**Replies:** 4\
**Last updated:** [June 20, 2022, 10:13am UTC](https://meta.discourse.org/t/how-to-add-topic-excerpt-to-all-my-topics/148903 "2022-06-20T10:13:06Z")

</div>

Hello community, Hacking discourse a bit, I realise that only the pinned topics are the ones that brings the excerpt and while I can update the serialiser of the topic to bring that excerpt attr I would like to avoid to…

---

## [Edit Code](https://meta.discourse.org/t/edit-code/230363)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 3\
**Last updated:** [June 18, 2022, 7:37pm UTC](https://meta.discourse.org/t/edit-code/230363 "2022-06-18T19:37:57Z")

</div>

HI, please, I would need to change the code because I need to make a few changes that can’t be made using plugins or the CSS in the admin panels. So far, I see the possibility in the docker container and then upload it …

---

## [Getting 500 internal server error in discourse API when trying to upload file in java](https://meta.discourse.org/t/getting-500-internal-server-error-in-discourse-api-when-trying-to-upload-file-in-java/230290)

<div class="topic-metadata">

**Author:** [@Devarsh\_Mavani](https://meta.discourse.org/u/Devarsh_Mavani)\
**Replies:** 0\
**Last updated:** [June 17, 2022, 1:08pm UTC](https://meta.discourse.org/t/getting-500-internal-server-error-in-discourse-api-when-trying-to-upload-file-in-java/230290 "2022-06-17T13:08:46Z")

</div>

I am using Discourse API to upload an image. here is the java code that i use to upload file import java.net.\*; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.\*; import jav…

---

## [I want to use my API to present the data](https://meta.discourse.org/t/i-want-to-use-my-api-to-present-the-data/230162)

<div class="topic-metadata">

**Author:** [@Ryen\_Lee](https://meta.discourse.org/u/Ryen_Lee)\
**Replies:** 2\
**Last updated:** [June 17, 2022, 5:54am UTC](https://meta.discourse.org/t/i-want-to-use-my-api-to-present-the-data/230162 "2022-06-17T05:54:52Z")

</div>

I have my post List API, user List API… Now I just need a custom Web page to display the data for my API . Can discourse help me ？

---

## [Is it possible to use a local plugin directory with a docker install?](https://meta.discourse.org/t/is-it-possible-to-use-a-local-plugin-directory-with-a-docker-install/227390)

<div class="topic-metadata">

**Author:** [@nordize](https://meta.discourse.org/u/nordize)\
**Replies:** 39\
**Last updated:** [June 16, 2022, 6:45am UTC](https://meta.discourse.org/t/is-it-possible-to-use-a-local-plugin-directory-with-a-docker-install/227390 "2022-06-16T06:45:42Z")

</div>

I have a standard (edit: non-dev) docker install in /var/discourse. Is it possible to use a local plugin directory to load in Discourse instead of linking to a remote github repo from app.yml? If yes, how? I tried two m…

---

## [Has anyone considered Ubuntu snap format for deploying Discourse?](https://meta.discourse.org/t/has-anyone-considered-ubuntu-snap-format-for-deploying-discourse/51719)

<div class="topic-metadata">

**Author:** [@alexrcs](https://meta.discourse.org/u/alexrcs)\
**Replies:** 4\
**Last updated:** [June 16, 2022, 3:52am UTC](https://meta.discourse.org/t/has-anyone-considered-ubuntu-snap-format-for-deploying-discourse/51719 "2022-06-16T03:52:34Z")

</div>

Just asking. Does anyone from the dev team know if this would be a good idea?

---

## [Plugin Development - Better way to fetch data for a model and rerender widget?](https://meta.discourse.org/t/plugin-development-better-way-to-fetch-data-for-a-model-and-rerender-widget/230085)

<div class="topic-metadata">

**Author:** [@dvargas92495](https://meta.discourse.org/u/dvargas92495)\
**Replies:** 0\
**Last updated:** [June 15, 2022, 4:23pm UTC](https://meta.discourse.org/t/plugin-development-better-way-to-fetch-data-for-a-model-and-rerender-widget/230085 "2022-06-15T16:23:20Z")

</div>

Hey all! I’m in the middle of developing a plugin that attempts to load pages that are wikilink’d as linked references. I have a basic implementation working, but don’t like how the design looks currently and wanted to…

---

## [How do I limit topics for API call?](https://meta.discourse.org/t/how-do-i-limit-topics-for-api-call/229956)

<div class="topic-metadata">

**Author:** [@Razon](https://meta.discourse.org/u/Razon)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 10:42pm UTC](https://meta.discourse.org/t/how-do-i-limit-topics-for-api-call/229956 "2022-06-14T22:42:02Z")

</div>

I’m getting all latest topics from https://community.example.com/c/food/drinks/99.json By default it’s load 30 topics per page if available. But i want to fetch specific number of topics like 5 topics. How can i do thi…

---

## [Wrapping a \<main\> tag around topic content for SEO purposes](https://meta.discourse.org/t/wrapping-a-main-tag-around-topic-content-for-seo-purposes/229600)

<div class="topic-metadata">

**Author:** [@JoshuaH](https://meta.discourse.org/u/JoshuaH)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 7:42am UTC](https://meta.discourse.org/t/wrapping-a-main-tag-around-topic-content-for-seo-purposes/229600 "2022-06-14T07:42:12Z")

</div>

Discourse already has a \<header\>, some \<nav\> & a \<footer\> tag, which is great! But it is currently missing the \<main\> tag. Would it be possible to wrap that around the main topic content? Thanks, Joshua

---

## [Unable to anonymize user via API with SSO enabled](https://meta.discourse.org/t/unable-to-anonymize-user-via-api-with-sso-enabled/229610)

<div class="topic-metadata">

**Author:** [@FoxCZ](https://meta.discourse.org/u/FoxCZ)\
**Replies:** 1\
**Last updated:** [June 13, 2022, 10:31am UTC](https://meta.discourse.org/t/unable-to-anonymize-user-via-api-with-sso-enabled/229610 "2022-06-13T10:31:58Z")

</div>

Hi everyone! We have decided to use Discourse as our main forum interface with Discourse SSO as login/signup. The SSO features (details sync, …) are implemented and working (mentioning this just for bit of background). …

---

## [I cannot set more than 1 cookie from controller](https://meta.discourse.org/t/i-cannot-set-more-than-1-cookie-from-controller/229736)

<div class="topic-metadata">

**Author:** [@Devarsh\_Mavani](https://meta.discourse.org/u/Devarsh_Mavani)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 8:10pm UTC](https://meta.discourse.org/t/i-cannot-set-more-than-1-cookie-from-controller/229736 "2022-06-12T20:10:28Z")

</div>

i am modifiying discourse and for that inside session\_controller.db file I am doing this cookies\[:sso\_payload\] = payload || request.query\_string cookies\[:sso\_destination\_url\] = data\[:return\_sso\_url\] However it does not…

---

## [User profile page / CSS class for groups / how to add it to page?](https://meta.discourse.org/t/user-profile-page-css-class-for-groups-how-to-add-it-to-page/229174)

<div class="topic-metadata">

**Author:** [@baseline-mobile](https://meta.discourse.org/u/baseline-mobile)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 4:43pm UTC](https://meta.discourse.org/t/user-profile-page-css-class-for-groups-how-to-add-it-to-page/229174 "2022-06-06T16:43:23Z")

</div>

I’m trying to hide the “summary section” of a user when that user is in a certain group, like “suspended” (and viewing that user profile page as a non-admin). I already have this theme component installed, CSS Classes fo…

---

## [Complex lists in settings.yml when building a plugin](https://meta.discourse.org/t/complex-lists-in-settings-yml-when-building-a-plugin/228992)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 1\
**Last updated:** [June 4, 2022, 6:55am UTC](https://meta.discourse.org/t/complex-lists-in-settings-yml-when-building-a-plugin/228992 "2022-06-04T06:55:38Z")

</div>

I’m building a plugin that requires a list as custom input. Ideally I’d like to allow the user to input an arbitrary number of elements in this list. I understand that when constructing settings.yml, there is the type: l…

---

## [Audit testing the code](https://meta.discourse.org/t/audit-testing-the-code/228780)

<div class="topic-metadata">

**Author:** [@matt\_c](https://meta.discourse.org/u/matt_c)\
**Replies:** 4\
**Last updated:** [June 1, 2022, 7:45pm UTC](https://meta.discourse.org/t/audit-testing-the-code/228780 "2022-06-01T19:45:34Z")

</div>

Hi, I’m new to ruby on rails and discourse. I wanted to verify the security of the code by doing some audit testing. I’m aware that it can sometime falsely detect problems. I was wondering if Discourse had any audit te…

---

## [Theme automation](https://meta.discourse.org/t/theme-automation/228579)

<div class="topic-metadata">

**Author:** [@gabriele\_fraracci](https://meta.discourse.org/u/gabriele_fraracci)\
**Replies:** 2\
**Last updated:** [May 31, 2022, 6:27pm UTC](https://meta.discourse.org/t/theme-automation/228579 "2022-05-31T18:27:37Z")

</div>

Hi all, Im new here :slight\_smile: So Im running a Dockerized version of bitnami Discourse ( the latest one ) on a Kubernetes cluster, really seems to be a great project. However Im facing a kind of problem trying to a…

---

## [Uri encoding confusion of email addresses when making API calls](https://meta.discourse.org/t/uri-encoding-confusion-of-email-addresses-when-making-api-calls/228647)

<div class="topic-metadata">

**Author:** [@mjkkirschner](https://meta.discourse.org/u/mjkkirschner)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 5:38pm UTC](https://meta.discourse.org/t/uri-encoding-confusion-of-email-addresses-when-making-api-calls/228647 "2022-05-31T17:38:54Z")

</div>

Hello, We maintain a forum using discourse, and we have an automated tool that makes requests like: agent.get(\`${this.baseUrl}/admin/users/list/all.json?email=${emailAddress}\`) I recently found an issue where one of t…

---

## [Simple plugin to create landing page for SSO not working anymore](https://meta.discourse.org/t/simple-plugin-to-create-landing-page-for-sso-not-working-anymore/228610)

<div class="topic-metadata">

**Author:** [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 3:00pm UTC](https://meta.discourse.org/t/simple-plugin-to-create-landing-page-for-sso-not-working-anymore/228610 "2022-05-31T15:00:07Z")

</div>

Continuing the discussion from Landing page on saml login: I’m not sure if this should be in Support or Development or something else, so feel free to move it as you deem necessary. I created a plugin in March 2022 to…

---

## [Can't upload themes](https://meta.discourse.org/t/cant-upload-themes/228241)

<div class="topic-metadata">

**Author:** [@matt\_c](https://meta.discourse.org/u/matt_c)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 1:56pm UTC](https://meta.discourse.org/t/cant-upload-themes/228241 "2022-05-30T13:56:27Z")

</div>

Hi, I just started using discourse. I followed this guide to install it on a Windows env using wsl2 and a Ubuntu VM. I want to upload a theme but every time I try, I get the same error : Error cloning git repository, acc…

---

## [Failing job: undefined method \`cancel\_scheduled\_job' for Jobs::Jobs:Module](https://meta.discourse.org/t/failing-job-undefined-method-cancel-scheduled-job-for-jobs-module/228155)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 11:41am UTC](https://meta.discourse.org/t/failing-job-undefined-method-cancel-scheduled-job-for-jobs-module/228155 "2022-05-26T11:41:12Z")

</div>

during Jobs::ProcessPost I can recreate on command line: whereas I can successfully reach it by: Believe it might be related to this: https://github.com/discourse/discourse/commit/bf6f8299a781922737fa01c408078f…

---

## [How do I get the latest topics from a specific category via API?](https://meta.discourse.org/t/how-do-i-get-the-latest-topics-from-a-specific-category-via-api/228017)

<div class="topic-metadata">

**Author:** [@James\_Cribbs](https://meta.discourse.org/u/James_Cribbs)\
**Replies:** 1\
**Last updated:** [May 24, 2022, 9:35pm UTC](https://meta.discourse.org/t/how-do-i-get-the-latest-topics-from-a-specific-category-via-api/228017 "2022-05-24T21:35:18Z")

</div>

I want to grab the latest topics for a specific category via the API, but I don’t see a parameter for category in the Topics call. How can I do this?

---

## [How do you set Topic Views](https://meta.discourse.org/t/how-do-you-set-topic-views/228002)

<div class="topic-metadata">

**Author:** [@natasha\_selvidge](https://meta.discourse.org/u/natasha_selvidge)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 6:24pm UTC](https://meta.discourse.org/t/how-do-you-set-topic-views/228002 "2022-05-24T18:24:30Z")

</div>

I would like to update my topic views in my plugin, so when a user opens a modal of the topic it will update a the view count the same way it already counts them. (The topic view counts are reset once per 8 hours per IP)…

---

## [Navigation back button](https://meta.discourse.org/t/navigation-back-button/227815)

<div class="topic-metadata">

**Author:** [@Pankaj\_Verma4](https://meta.discourse.org/u/Pankaj_Verma4)\
**Replies:** 0\
**Last updated:** [May 23, 2022, 8:18am UTC](https://meta.discourse.org/t/navigation-back-button/227815 "2022-05-23T08:18:52Z")

</div>

We need to embed discussion web forum in our ios/android app. To enable smooth navigation in the discourse community, we need access to the back button event handler/listener. Can someone please help us with what would …

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

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