# Development

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

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

**Page:** 114

---

## [Bizarre Problems with migrate\_from\_s3](https://meta.discourse.org/t/bizarre-problems-with-migrate-from-s3/86337)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [May 2, 2018, 3:22pm UTC](https://meta.discourse.org/t/bizarre-problems-with-migrate-from-s3/86337 "2018-05-02T15:22:56Z")

</div>

I was migrating from S3 and had some strange problems. First, shouldn’t the rake task be looking at cooked, and not raw? Or maybe this is a vestige of the old way images were put into raw? The rest of this is a bizarr…

---

## [Retrieve profile image to display on external site](https://meta.discourse.org/t/retrieve-profile-image-to-display-on-external-site/40624)

<div class="topic-metadata">

**Author:** [@Ian\_Hitchcox](https://meta.discourse.org/u/Ian_Hitchcox)\
**Replies:** 2\
**Last updated:** [March 7, 2016, 4:11pm UTC](https://meta.discourse.org/t/retrieve-profile-image-to-display-on-external-site/40624 "2016-03-07T16:11:42Z")

</div>

Hi I want to grab a user’s image from our discourse forum and be able to consume it via JS or the Java Spring backend. I currently get a cross origin error when doing a standard ajax call for the image. Is it possible…

---

## [Why mixes widget and handlebars?](https://meta.discourse.org/t/why-mixes-widget-and-handlebars/104890)

<div class="topic-metadata">

**Author:** [@Chong\_An\_Chen](https://meta.discourse.org/u/Chong_An_Chen)\
**Replies:** 4\
**Last updated:** [December 25, 2018, 12:41pm UTC](https://meta.discourse.org/t/why-mixes-widget-and-handlebars/104890 "2018-12-25T12:41:57Z")

</div>

Hi everyone, I’ve tried to customize our discourse for about a month. Then I’d like to ask why mixes widget and handlebars together? I think that makes code more complicated and hard to maintain. For an example, I wan…

---

## [I want to remove meta name="description", but changes not reflecting](https://meta.discourse.org/t/i-want-to-remove-meta-name-description-but-changes-not-reflecting/104911)

<div class="topic-metadata">

**Author:** [@Amit\_Arora](https://meta.discourse.org/u/Amit_Arora)\
**Replies:** 3\
**Last updated:** [December 22, 2018, 6:01pm UTC](https://meta.discourse.org/t/i-want-to-remove-meta-name-description-but-changes-not-reflecting/104911 "2018-12-22T18:01:16Z")

</div>

I want to remove the meta name=“description”, i had made changes in application.html.erb The file is located at : /var/lib/docker/overlay2/77f62fc5de6c7f76b807f77a0b2ad6fd1cfd6377d452e4fec0349278c8aca505/diff/var/www/d…

---

## [Discourse app folder on digitalocean or any server](https://meta.discourse.org/t/discourse-app-folder-on-digitalocean-or-any-server/104889)

<div class="topic-metadata">

**Author:** [@Amit\_Arora](https://meta.discourse.org/u/Amit_Arora)\
**Replies:** 1\
**Last updated:** [December 22, 2018, 9:41am UTC](https://meta.discourse.org/t/discourse-app-folder-on-digitalocean-or-any-server/104889 "2018-12-22T09:41:00Z")

</div>

I am very new to Discourse, i had just installed via digitalocean one click app installer for live site http://www.frontpageofindia.com/. I need to customize the header section but i m not able to find the app folder on…

---

## [Launcher script fails due to "Argument list too long"](https://meta.discourse.org/t/launcher-script-fails-due-to-argument-list-too-long/104705)

<div class="topic-metadata">

**Author:** [@Eduardo\_Poleo](https://meta.discourse.org/u/Eduardo_Poleo)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 8:17pm UTC](https://meta.discourse.org/t/launcher-script-fails-due-to-argument-list-too-long/104705 "2018-12-19T20:17:38Z")

</div>

Hey guys, We are currently using discourse as a multi-tenanted community platform. Every time we add a new tenant our containers/“$config”.yml files grow. The issue is that we’ve already reached the point where commands…

---

## [\[Solved\] How to use virtual-dom's "h" helper in \<head\> for header-dropdown hamburger widget override? + How to override @computed method?](https://meta.discourse.org/t/solved-how-to-use-virtual-doms-h-helper-in-head-for-header-dropdown-hamburger-widget-override-how-to-override-computed-method/104583)

<div class="topic-metadata">

**Author:** [@rbrlortie](https://meta.discourse.org/u/rbrlortie)\
**Replies:** 6\
**Last updated:** [December 18, 2018, 9:13pm UTC](https://meta.discourse.org/t/solved-how-to-use-virtual-doms-h-helper-in-head-for-header-dropdown-hamburger-widget-override-how-to-override-computed-method/104583 "2018-12-18T21:13:13Z")

</div>

Hi, I’m attempting to override the main header-dropdown html tags via my custom theme. My proof on concept was this: \<script type="text/discourse-plugin" version="0.8.23"\> api.reopenWidget("header-dropdown", { html(…

---

## [Newsletter Subscribe](https://meta.discourse.org/t/newsletter-subscribe/104631)

<div class="topic-metadata">

**Author:** [@damthanhbinh](https://meta.discourse.org/u/damthanhbinh)\
**Replies:** 0\
**Last updated:** [December 19, 2018, 7:24am UTC](https://meta.discourse.org/t/newsletter-subscribe/104631 "2018-12-19T07:24:27Z")

</div>

Anyone please help me how to make a newsletter subcribtion like this forum?

---

## [I get a 422 response when calling the create post API](https://meta.discourse.org/t/i-get-a-422-response-when-calling-the-create-post-api/104479)

<div class="topic-metadata">

**Author:** [@bswitala](https://meta.discourse.org/u/bswitala)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 5:39pm UTC](https://meta.discourse.org/t/i-get-a-422-response-when-calling-the-create-post-api/104479 "2018-12-17T17:39:40Z")

</div>

Hi Discourse, I’m pretty new to this platform, I like the way it looks and I’ve noticed some neat features so far. Cool! I’m trying to to integrate a Discourse installation with another system, and I’m starting off by…

---

## [Transforming simple ruby files into a ruby gem](https://meta.discourse.org/t/transforming-simple-ruby-files-into-a-ruby-gem/103399)

<div class="topic-metadata">

**Author:** [@SebastianADW](https://meta.discourse.org/u/SebastianADW)\
**Replies:** 5\
**Last updated:** [December 14, 2018, 4:40pm UTC](https://meta.discourse.org/t/transforming-simple-ruby-files-into-a-ruby-gem/103399 "2018-12-14T16:40:07Z")

</div>

Hey, i am trying to create my first plugin for discourse. I already have the ruby code working fine. I have 4 different ruby files with different kind of methods in it, i like to have them splitted. And a Gemfile and a …

---

## [How do I run the test suite just for one plugin?](https://meta.discourse.org/t/how-do-i-run-the-test-suite-just-for-one-plugin/104268)

<div class="topic-metadata">

**Author:** [@nsuchy](https://meta.discourse.org/u/nsuchy)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 2:36pm UTC](https://meta.discourse.org/t/how-do-i-run-the-test-suite-just-for-one-plugin/104268 "2018-12-14T14:36:30Z")

</div>

I’m trying to run the test suite for discourse-canned replies however instead any time I try it runs the entire discourse test suite (this takes a very long time and doesn’t work well for me when making lots of tiny chan…

---

## [Good first issue?](https://meta.discourse.org/t/good-first-issue/104054)

<div class="topic-metadata">

**Author:** [@nsuchy](https://meta.discourse.org/u/nsuchy)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 10:36pm UTC](https://meta.discourse.org/t/good-first-issue/104054 "2018-12-11T22:36:09Z")

</div>

I’m looking for a good first issue to write a patch for. Preferably fixing something on the Ruby side of things as I’m trying to gain more experience developing with Rails. Any suggestions?

---

## [Topic\_views vs Topic.views](https://meta.discourse.org/t/topic-views-vs-topic-views/97175)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**Replies:** 15\
**Last updated:** [December 12, 2018, 9:53pm UTC](https://meta.discourse.org/t/topic-views-vs-topic-views/97175 "2018-12-12T21:53:45Z")

</div>

When helping a client with a data explorer query, they noticed a difference between the topic views returned by the query, and the number on the category topic list. Where does the difference between SELECT COUNT(\*) FR…

---

## [Plugin outlets for summary emails](https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [December 11, 2018, 7:13pm UTC](https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959 "2018-12-11T19:13:20Z")

</div>

With some frequency people want to add something to the Summary emails (e.g., Need advertising added to the newsletter (Digest), and I just did a project where someone wants some data from custom fields added to summary …

---

## [Get ruby-bbcode-to-md to ignore \[quote\]](https://meta.discourse.org/t/get-ruby-bbcode-to-md-to-ignore-quote/75106)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [December 11, 2018, 2:44pm UTC](https://meta.discourse.org/t/get-ruby-bbcode-to-md-to-ignore-quote/75106 "2018-12-11T14:44:02Z")

</div>

I’m doing some work on the xenforo importer and have modified it so that it converts the BBcode \[quote\] tags into Discourse \[quote="username,post:\<post\_number\>, topic:\<topic\_id\>\] tags, but ruby-bbcode-to-md breaks it sin…

---

## [A way in client javascript to find if current user is member of private group?](https://meta.discourse.org/t/a-way-in-client-javascript-to-find-if-current-user-is-member-of-private-group/104010)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 2:46pm UTC](https://meta.discourse.org/t/a-way-in-client-javascript-to-find-if-current-user-is-member-of-private-group/104010 "2018-12-11T14:46:21Z")

</div>

How can I check if a user is a member of a private group in javascript? I’m not confident there’s a solution to this, but asking just in case! I’m trying to hide a javascript built advertising panel from site donators …

---

## [Database Cleanup while writing a new Import Script](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134)

<div class="topic-metadata">

**Author:** [@praveendhinwa](https://meta.discourse.org/u/praveendhinwa)\
**Replies:** 8\
**Last updated:** [December 10, 2018, 9:50pm UTC](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134 "2018-12-10T21:50:33Z")

</div>

Hello Friends, I am trying to write an import script from OSQA to discourse. I have local Ubuntu installation of discourse. I wanted a way to know whether there is some cleanup script available which can delete all the …

---

## [Allow modifying class methods/properties in plugin-api?](https://meta.discourse.org/t/allow-modifying-class-methods-properties-in-plugin-api/84270)

<div class="topic-metadata">

**Author:** [@shoshber](https://meta.discourse.org/u/shoshber)\
**Replies:** 4\
**Last updated:** [December 9, 2018, 10:57pm UTC](https://meta.discourse.org/t/allow-modifying-class-methods-properties-in-plugin-api/84270 "2018-12-09T22:57:51Z")

</div>

plugin-api.modifyClass allows us to overwrite instance methods of existing classes, but there is no analogous way to overwrite class methods. It would be cool if there were. In my case, I want to overwrite the user mode…

---

## [Anti domination bot](https://meta.discourse.org/t/anti-domination-bot/103802)

<div class="topic-metadata">

**Author:** [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Replies:** 4\
**Last updated:** [December 9, 2018, 11:51am UTC](https://meta.discourse.org/t/anti-domination-bot/103802 "2018-12-09T11:51:43Z")

</div>

First experiment with the Discourse API: a bot which discourages users from dominating a category. This is already proving useful in our opt-in Politics category on one of my Discourse forums. I’m new to Discourse API …

---

## [Getting Rails route error instead of 404](https://meta.discourse.org/t/getting-rails-route-error-instead-of-404/103754)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 2\
**Last updated:** [December 8, 2018, 9:33pm UTC](https://meta.discourse.org/t/getting-rails-route-error-instead-of-404/103754 "2018-12-08T21:33:19Z")

</div>

Starting Discourse in development mode and opening http://localhost:3000/x doesn’t produce a 404 page like https://meta.discourse.org/x does. Instead, I get the Rails routing error page: No route matches \[GET\] "/x" ▶ Fu…

---

## [Can we make \`s3 force path style\` be \`shadowed\_by\_global\`?](https://meta.discourse.org/t/can-we-make-s3-force-path-style-be-shadowed-by-global/103571)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [December 6, 2018, 11:53pm UTC](https://meta.discourse.org/t/can-we-make-s3-force-path-style-be-shadowed-by-global/103571 "2018-12-06T23:53:02Z")

</div>

I’ve set up a minio server at my tiny server farm and have started pushing backups there. It seems to be working well. My only complaint is that s3\_force\_path\_style is required for Minio (and apparently backups?) but th…

---

## [Installing own gem in plugin](https://meta.discourse.org/t/installing-own-gem-in-plugin/54351)

<div class="topic-metadata">

**Author:** [@shirjeelalam](https://meta.discourse.org/u/shirjeelalam)\
**Replies:** 2\
**Last updated:** [December 6, 2018, 4:59pm UTC](https://meta.discourse.org/t/installing-own-gem-in-plugin/54351 "2018-12-06T16:59:09Z")

</div>

I want to install ‘omniauth-openid-connect’ gem in a plugin my plugin.rb file gem ‘omniauth-openid-connect’, ‘0.2.3’ In development mode, when i run my local server, I get the following error: \*\*\* Gem::LoadError E…

---

## [How to increase avatars size on posts without making them blurred](https://meta.discourse.org/t/how-to-increase-avatars-size-on-posts-without-making-them-blurred/82214)

<div class="topic-metadata">

**Author:** [@dax](https://meta.discourse.org/u/dax)\
**Replies:** 11\
**Last updated:** [December 5, 2018, 6:59pm UTC](https://meta.discourse.org/t/how-to-increase-avatars-size-on-posts-without-making-them-blurred/82214 "2018-12-05T18:59:11Z")

</div>

:loudspeaker: :warning: This guide is now deprecated in favour of the theme component Avatar Size and Shape :warning: :loudspeaker: ▶ Original Content

---

## [Add custom user routes using plugins](https://meta.discourse.org/t/add-custom-user-routes-using-plugins/102620)

<div class="topic-metadata">

**Author:** [@ankit.jain](https://meta.discourse.org/u/ankit.jain)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 7:56am UTC](https://meta.discourse.org/t/add-custom-user-routes-using-plugins/102620 "2018-12-05T07:56:02Z")

</div>

Hi Guys, can someone please guide me how to add some custom user routes using plugins in discourse. I have gone through the plugin creation tutorial and add an admin interface using the plugin but not able to get it to…

---

## [Issues with custom OAuth provider & user\_id of access\_token being set to nil](https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316)

<div class="topic-metadata">

**Author:** [@Daniel\_Lopes](https://meta.discourse.org/u/Daniel_Lopes)\
**Replies:** 2\
**Last updated:** [December 4, 2018, 1:31am UTC](https://meta.discourse.org/t/issues-with-custom-oauth-provider-user-id-of-access-token-being-set-to-nil/103316 "2018-12-04T01:31:33Z")

</div>

Hey everyone, My company is starting to offer access to our discourse as part of our main product, and we decided to build a custom OAuth integration so people can login with the existing account. We created as an auth…

---

## [Discourse and OmniSci API Example](https://meta.discourse.org/t/discourse-and-omnisci-api-example/103390)

<div class="topic-metadata">

**Author:** [@senatorgrant](https://meta.discourse.org/u/senatorgrant)\
**Replies:** 0\
**Last updated:** [December 3, 2018, 8:20pm UTC](https://meta.discourse.org/t/discourse-and-omnisci-api-example/103390 "2018-12-03T20:20:58Z")

</div>

Howdy folks. Longtime lurker as an admin of my Discourse instance; first-time contributor. We recently added API access to our platform and the first data source I added was Discourse. So I thought I’d provide the end-to…

---

## [Deprecation warning improvement idea](https://meta.discourse.org/t/deprecation-warning-improvement-idea/103241)

<div class="topic-metadata">

**Author:** [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Replies:** 0\
**Last updated:** [December 1, 2018, 12:58pm UTC](https://meta.discourse.org/t/deprecation-warning-improvement-idea/103241 "2018-12-01T12:58:54Z")

</div>

@david used deprecation warning a bit in recent improvements on auth providers. And Discourse has changed a lot of site settings too. I’m thinking we probably need to provide more information about deprecation so that pl…

---

## [Multiple topics in single API request](https://meta.discourse.org/t/multiple-topics-in-single-api-request/40807)

<div class="topic-metadata">

**Author:** [@Andrew\_Byrne](https://meta.discourse.org/u/Andrew_Byrne)\
**Replies:** 10\
**Last updated:** [November 30, 2018, 8:07pm UTC](https://meta.discourse.org/t/multiple-topics-in-single-api-request/40807 "2018-11-30T20:07:57Z")

</div>

Using the Discourse API is pretty cool and I’ve used it to provide a number of custom interrogations in related sites. One thing that has caused me some issues is the fact I need to make single requests on each topic via…

---

## [Scrape a discourse forum with python](https://meta.discourse.org/t/scrape-a-discourse-forum-with-python/98520)

<div class="topic-metadata">

**Author:** [@mermaldad](https://meta.discourse.org/u/mermaldad)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 1:33am UTC](https://meta.discourse.org/t/scrape-a-discourse-forum-with-python/98520 "2018-10-03T01:33:44Z")

</div>

I am looking to semi-automate the process of turning a nominations thread into a table of nominations. I am using python (specifically the beautiful soup library) to parse the html. The nominations thread consists of a…

---

## [API Returning HTML Instead of JSON At Specific Routes?](https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691)

<div class="topic-metadata">

**Author:** [@Wintermute](https://meta.discourse.org/u/Wintermute)\
**Replies:** 3\
**Last updated:** [November 21, 2018, 10:08pm UTC](https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691 "2018-11-21T22:08:27Z")

</div>

In Brief: calling a specific route returns HTML instead of json calling a different route with same code returns json as expected accessing the broken route from the Chrome browser returns json as expected Long: I…

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

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