# Development

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

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

**Page:** 115

---

## [Converting links from raw markdown to HTML](https://meta.discourse.org/t/converting-links-from-raw-markdown-to-html/102422)

<div class="topic-metadata">

**Author:** [@hellekin](https://meta.discourse.org/u/hellekin)\
**Replies:** 2\
**Last updated:** [November 21, 2018, 2:13pm UTC](https://meta.discourse.org/t/converting-links-from-raw-markdown-to-html/102422 "2018-11-21T14:13:05Z")

</div>

Context I’m trying to retrieve specific posts to turn them into a single corpus (e.g., a book) to be processed elsewhere (e.g., with Pandoc). ‘Simple’ Approach Discourse provides two readily accessible ways to download …

---

## [Auth provider plugin information for plugin authors?](https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392)

<div class="topic-metadata">

**Author:** [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 2:35pm UTC](https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392 "2018-11-20T14:35:03Z")

</div>

I’m working on migrating old oauth2 login to new interface. I listed some changes in a PR. enabled\_setting in auth\_provider.rb needs a deprecation warning. Do we need a deprecation warning for background\_color too? Thi…

---

## [Anonymous votes in poll plugin](https://meta.discourse.org/t/anonymous-votes-in-poll-plugin/42382)

<div class="topic-metadata">

**Author:** [@gerhard](https://meta.discourse.org/u/gerhard)\
**Replies:** 7\
**Last updated:** [November 19, 2018, 1:51pm UTC](https://meta.discourse.org/t/anonymous-votes-in-poll-plugin/42382 "2018-11-19T13:51:24Z")

</div>

I’m in the process of fixing the import of polls in the phpBB3 importer. I noticed a few days ago that it was completely broken since October. :blush: Anyway, in phpBB3 it is possible for anonymous users to vote in poll…

---

## [Question Regarding "Users" Field in API Output](https://meta.discourse.org/t/question-regarding-users-field-in-api-output/102273)

<div class="topic-metadata">

**Author:** [@Wintermute](https://meta.discourse.org/u/Wintermute)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 5:56am UTC](https://meta.discourse.org/t/question-regarding-users-field-in-api-output/102273 "2018-11-19T05:56:57Z")

</div>

Hi, I have a quick question regarding the output at https://meta.discourse.org/u/Wintermute.json. Near the top of the page you have a “Users” field which lists a couple accounts (in this case, just me and System). I h…

---

## [Why api call: url/directory\_item not working](https://meta.discourse.org/t/why-api-call-url-directory-item-not-working/102150)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 1\
**Last updated:** [November 16, 2018, 10:37pm UTC](https://meta.discourse.org/t/why-api-call-url-directory-item-not-working/102150 "2018-11-16T22:37:03Z")

</div>

I trying to make the same api call as the meta.discourse endpoint: Discourse Meta. I tried to do the same thing inside postman, but without luck. This is my get request inside postman {{base\_url}}/directory\_items.j…

---

## [Mounting widget in raw template?](https://meta.discourse.org/t/mounting-widget-in-raw-template/44400)

<div class="topic-metadata">

**Author:** [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Replies:** 9\
**Last updated:** [November 16, 2018, 12:49am UTC](https://meta.discourse.org/t/mounting-widget-in-raw-template/44400 "2018-11-16T00:49:58Z")

</div>

Part of what I love about the new widget structure is being able to reuse code in multiple places. But I’ve run into an issue when attempting to do this for the voting plugin. I use widgets heavily on the page for an in…

---

## [Creating badge via API query works, but returns 422](https://meta.discourse.org/t/creating-badge-via-api-query-works-but-returns-422/40127)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [November 15, 2018, 2:14pm UTC](https://meta.discourse.org/t/creating-badge-via-api-query-works-but-returns-422/40127 "2018-11-15T14:14:31Z")

</div>

I want a way to make groups of badges: bronze → submitted with certain tag silver → submitted tag, liked by me gold → submitted tag, liked by me and 3 other people I need to make a bunch of them and it’s tedious doing…

---

## [Replacing Details Toolbar Button?](https://meta.discourse.org/t/replacing-details-toolbar-button/102101)

<div class="topic-metadata">

**Author:** [@Kankuro](https://meta.discourse.org/u/Kankuro)\
**Replies:** 0\
**Last updated:** [November 15, 2018, 12:01pm UTC](https://meta.discourse.org/t/replacing-details-toolbar-button/102101 "2018-11-15T12:01:44Z")

</div>

Hello, I’m trying to replace the existing details toolbar button with my own custom one, but I’m not having much success. I was following this tutorial about the plugin API along with my existing knowledge about JS but …

---

## [Database connection error when setting up Discourse development environment using Linux Bash Shell on Windows 10](https://meta.discourse.org/t/database-connection-error-when-setting-up-discourse-development-environment-using-linux-bash-shell-on-windows-10/86509)

<div class="topic-metadata">

**Author:** [@utsav\_lamichane](https://meta.discourse.org/u/utsav_lamichane)\
**Replies:** 4\
**Last updated:** [November 14, 2018, 6:32am UTC](https://meta.discourse.org/t/database-connection-error-when-setting-up-discourse-development-environment-using-linux-bash-shell-on-windows-10/86509 "2018-11-14T06:32:28Z")

</div>

(error on this command) bundle exec rake db:migrate db:test:prepare db:seed\_fu

---

## [Upgrading Ember](https://meta.discourse.org/t/upgrading-ember/101985)

<div class="topic-metadata">

**Author:** [@Matt\_Campbell](https://meta.discourse.org/u/Matt_Campbell)\
**Replies:** 1\
**Last updated:** [November 14, 2018, 3:34am UTC](https://meta.discourse.org/t/upgrading-ember/101985 "2018-11-14T03:34:14Z")

</div>

Judging by the Gemfile, it looks like Discourse is running Ember 2.13.3. This isn’t an LTS version, and the nearest LTS version has been EOL for a while. So is there a plan to upgrade to the last 2.x LTS version, if not …

---

## [HTTP put request error](https://meta.discourse.org/t/http-put-request-error/101604)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 5\
**Last updated:** [November 13, 2018, 6:01am UTC](https://meta.discourse.org/t/http-put-request-error/101604 "2018-11-13T06:01:20Z")

</div>

I’m having some issues with put request to my discourse from the api. I can make, post and get request, but when I try to make a put request it doesn’t work. My put request works, when I have the GOOGLE CORS extensio…

---

## [How to customize the Discourse app using docker container?](https://meta.discourse.org/t/how-to-customize-the-discourse-app-using-docker-container/101594)

<div class="topic-metadata">

**Author:** [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)\
**Replies:** 2\
**Last updated:** [November 8, 2018, 2:02pm UTC](https://meta.discourse.org/t/how-to-customize-the-discourse-app-using-docker-container/101594 "2018-11-08T14:02:33Z")

</div>

We want to develop new app similar to discourse, so we are trying to customized the discourse app. We referred following url to install docker container in local system. https://github.com/discourse/discourse\_docker …

---

## [Base\_url\_no\_prefix actually base\_url\_no\_suffix?](https://meta.discourse.org/t/base-url-no-prefix-actually-base-url-no-suffix/94797)

<div class="topic-metadata">

**Author:** [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Replies:** 11\
**Last updated:** [November 7, 2018, 1:27am UTC](https://meta.discourse.org/t/base-url-no-prefix-actually-base-url-no-suffix/94797 "2018-11-07T01:27:38Z")

</div>

Noticed this while cleaning up my CSP proof of concept: Discourse.base\_url\_no\_prefix seems to actually be the base url sans path (not protocol, as I would expect), compare base\_url\_no\_prefix to base\_url below: So, I …

---

## [Which resources to learn more about Rails, Docker and Ember.js?](https://meta.discourse.org/t/which-resources-to-learn-more-about-rails-docker-and-ember-js/101482)

<div class="topic-metadata">

**Author:** [@vegasloki](https://meta.discourse.org/u/vegasloki)\
**Replies:** 0\
**Last updated:** [November 7, 2018, 12:38am UTC](https://meta.discourse.org/t/which-resources-to-learn-more-about-rails-docker-and-ember-js/101482 "2018-11-07T00:38:25Z")

</div>

This is a pretty savvy bunch. What resources did you use to learn those parts of the stack? There is a ton of stuff out there so before I tried to consume it all I thought I’d ask. Curious to see what those in dev thi…

---

## [Getting Cors ERROR](https://meta.discourse.org/t/getting-cors-error/101415)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 1:26pm UTC](https://meta.discourse.org/t/getting-cors-error/101415 "2018-11-06T13:26:43Z")

</div>

I’m building a discourse management system. The Management system is built using firebase and angular. The only thing I use from discourse is the API call provided. When I’m testing my functionality I get CORS ERRORS i…

---

## [How can i create a topic with content via the Discourse API?](https://meta.discourse.org/t/how-can-i-create-a-topic-with-content-via-the-discourse-api/101319)

<div class="topic-metadata">

**Author:** [@SebastianADW](https://meta.discourse.org/u/SebastianADW)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 11:01am UTC](https://meta.discourse.org/t/how-can-i-create-a-topic-with-content-via-the-discourse-api/101319 "2018-11-06T11:01:03Z")

</div>

So what i basically want to do is to run a Ruby File which creates a Topic with content to my Discourse server. First of all just to learn how to use the Discourse API. I want to develop a plugin that writes content to …

---

## [Make Tag Dropdown Retain Focus After Tag Picked; Client-Side API Questions](https://meta.discourse.org/t/make-tag-dropdown-retain-focus-after-tag-picked-client-side-api-questions/101115)

<div class="topic-metadata">

**Author:** [@Kankuro](https://meta.discourse.org/u/Kankuro)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 5:03am UTC](https://meta.discourse.org/t/make-tag-dropdown-retain-focus-after-tag-picked-client-side-api-questions/101115 "2018-11-06T05:03:37Z")

</div>

How could I go about making it so the tag dropdown menu doesn’t close when a tag is picked, but instead if closed is the user clicks away to remove the focus? I’m still getting used to Discourse’s software and haven’t u…

---

## [Npm install fails due to package.json misconfiguration](https://meta.discourse.org/t/npm-install-fails-due-to-package-json-misconfiguration/101193)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 10\
**Last updated:** [November 5, 2018, 8:30pm UTC](https://meta.discourse.org/t/npm-install-fails-due-to-package-json-misconfiguration/101193 "2018-11-05T20:30:01Z")

</div>

Since the commit Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) · discourse/discourse@dc8a16b · GitHub, running npm install fails. Looking at the log file … 880 silly fetchPackageMetaData error …

---

## [Plugin with catch-all wildcard route map](https://meta.discourse.org/t/plugin-with-catch-all-wildcard-route-map/100348)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 10\
**Last updated:** [November 3, 2018, 2:08pm UTC](https://meta.discourse.org/t/plugin-with-catch-all-wildcard-route-map/100348 "2018-11-03T14:08:35Z")

</div>

Discourse has a catch-all route using a wildcard path. app/assets/javascripts/discourse/mapping-router.js.es6: this.route("unknown", { path: "\*path" }); As far as I can tell, this stops plugins from having the same ca…

---

## [Add CSP nonce-source support](https://meta.discourse.org/t/add-csp-nonce-source-support/93300)

<div class="topic-metadata">

**Author:** [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Replies:** 11\
**Last updated:** [November 2, 2018, 5:33am UTC](https://meta.discourse.org/t/add-csp-nonce-source-support/93300 "2018-11-02T05:33:52Z")

</div>

While moving all inline scripts externally would take a tremendous amount of effort, as far as I can see, adding nonce-source support would be relatively trivial. nonce-source works by adding a nonce attribute to any \<s…

---

## [Updating the google group importer](https://meta.discourse.org/t/updating-the-google-group-importer/59075)

<div class="topic-metadata">

**Author:** [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Replies:** 2\
**Last updated:** [March 14, 2017, 3:09pm UTC](https://meta.discourse.org/t/updating-the-google-group-importer/59075 "2017-03-14T15:09:11Z")

</div>

Hi I have now written 2 iterations of importers for Google Groups into Discourse. The most recent one is here: GitHub - pacharanero/google\_group.to\_discourse: Import script from a private Google Group into a Discourse f…

---

## [Get Post Id's of posts that a user liked](https://meta.discourse.org/t/get-post-ids-of-posts-that-a-user-liked/84074)

<div class="topic-metadata">

**Author:** [@rodeezy](https://meta.discourse.org/u/rodeezy)\
**Replies:** 4\
**Last updated:** [March 29, 2018, 12:01am UTC](https://meta.discourse.org/t/get-post-ids-of-posts-that-a-user-liked/84074 "2018-03-29T00:01:34Z")

</div>

I would like to get the id’s of posts that a specific user has liked. How can I do this?

---

## [Object Settings?](https://meta.discourse.org/t/object-settings/100814)

<div class="topic-metadata">

**Author:** [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)\
**Replies:** 1\
**Last updated:** [October 30, 2018, 6:02am UTC](https://meta.discourse.org/t/object-settings/100814 "2018-10-30T06:02:51Z")

</div>

Is there any way to have an admin setting that is an object? Keys and values?

---

## [Why does fabricating a category have a post in it?](https://meta.discourse.org/t/why-does-fabricating-a-category-have-a-post-in-it/100844)

<div class="topic-metadata">

**Author:** [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)\
**Replies:** 2\
**Last updated:** [October 30, 2018, 5:57am UTC](https://meta.discourse.org/t/why-does-fabricating-a-category-have-a-post-in-it/100844 "2018-10-30T05:57:49Z")

</div>

category = Fabricate(:category) puts Topic.where(category\_id: category).count # 1 Is this not surprising behavior? This tripped me up when writing a test that relies on the number of posts in a category, am I thinking a…

---

## [Development environment : running sidekiq and discourse at startup](https://meta.discourse.org/t/development-environment-running-sidekiq-and-discourse-at-startup/58200)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 14\
**Last updated:** [October 30, 2018, 5:39am UTC](https://meta.discourse.org/t/development-environment-running-sidekiq-and-discourse-at-startup/58200 "2018-10-30T05:39:19Z")

</div>

My development environment is a dedicated Ubuntu server (my project involves two web apps interacting with each other, too heavy and too complicated to set up locally). On this server, I would like to run sidekiq and dis…

---

## [Errors on DB restore in Dev](https://meta.discourse.org/t/errors-on-db-restore-in-dev/100647)

<div class="topic-metadata">

**Author:** [@ryanerwin](https://meta.discourse.org/u/ryanerwin)\
**Replies:** 2\
**Last updated:** [October 28, 2018, 7:14am UTC](https://meta.discourse.org/t/errors-on-db-restore-in-dev/100647 "2018-10-28T07:14:40Z")

</div>

I’ve been struggling for several days tying to get my live database restored onto my development machine (Arch) for some troubleshooting. I’ve tried using the docker dev container launched via ./bin/docker/boot\_dev the l…

---

## [Include text at bottom of post for users in group](https://meta.discourse.org/t/include-text-at-bottom-of-post-for-users-in-group/100378)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [October 25, 2018, 11:38pm UTC](https://meta.discourse.org/t/include-text-at-bottom-of-post-for-users-in-group/100378 "2018-10-25T23:38:00Z")

</div>

I’ve a client that wants to add a link to a user profile for members of a particular group. I thought about the signature plugin, but I’m wondering whether it might be possible with a theme component. Is there some way…

---

## [Reply to specific post don't display glyph via API](https://meta.discourse.org/t/reply-to-specific-post-dont-display-glyph-via-api/100466)

<div class="topic-metadata">

**Author:** [@jandres](https://meta.discourse.org/u/jandres)\
**Replies:** 3\
**Last updated:** [October 25, 2018, 4:01pm UTC](https://meta.discourse.org/t/reply-to-specific-post-dont-display-glyph-via-api/100466 "2018-10-25T16:01:57Z")

</div>

Hello team I’m trying to submit a reponse to an specific post in a topic using the API, but there are something wrong when you see the post on browser. The post response dont show arrow and reply username on post info …

---

## [Get a filtered latest.json](https://meta.discourse.org/t/get-a-filtered-latest-json/100440)

<div class="topic-metadata">

**Author:** [@Bas](https://meta.discourse.org/u/Bas)\
**Replies:** 2\
**Last updated:** [October 25, 2018, 11:57am UTC](https://meta.discourse.org/t/get-a-filtered-latest-json/100440 "2018-10-25T11:57:09Z")

</div>

We’d like to create a personalised hompage for users, that will include posts tagged to their interest. We’ll pre-define a few persona’s and they’d need to get a personalised feed of latest forum posts. What would be th…

---

## [Are custom\_fields on posts/topics available via the API?](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455)

<div class="topic-metadata">

**Author:** [@cappslock](https://meta.discourse.org/u/cappslock)\
**Replies:** 7\
**Last updated:** [October 24, 2018, 9:09am UTC](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455 "2018-10-24T09:09:51Z")

</div>

I see from some digging that a custom\_fields property exists on posts/topics and plugins make extensive use of it. Is this field available through the API? Can it be set? Can it be queried against? Could a search be mad…

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

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