# Development

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

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

**Page:** 135

---

## [Webhooks feedback](https://meta.discourse.org/t/webhooks-feedback/49046)

<div class="topic-metadata">

**Author:** [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Replies:** 33\
**Last updated:** [March 21, 2017, 8:00am UTC](https://meta.discourse.org/t/webhooks-feedback/49046 "2017-03-21T08:00:40Z")

</div>

Webhook is merged to master. See Setting up webhooks for instructions. Webhooks is my GSoC projects which ends in Aug 23. It’s fully operating but I would keep improving it on more event types as well as payload improve…

---

## [Managing site customization via API](https://meta.discourse.org/t/managing-site-customization-via-api/59431)

<div class="topic-metadata">

**Author:** [@iamntz](https://meta.discourse.org/u/iamntz)\
**Replies:** 6\
**Last updated:** [March 20, 2017, 4:47pm UTC](https://meta.discourse.org/t/managing-site-customization-via-api/59431 "2017-03-20T16:47:17Z")

</div>

Hey guys, I was wondering if there is a way of managing CSS/HTML customization via API. This means to fetch/update items here: admin/customize/css\_html/ I’ve read this and didn’t had too much luck: GETting this in POS…

---

## [How to refresh topic title when it was changed in one of plugin's custom controllers](https://meta.discourse.org/t/how-to-refresh-topic-title-when-it-was-changed-in-one-of-plugins-custom-controllers/59480)

<div class="topic-metadata">

**Author:** [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)\
**Replies:** 4\
**Last updated:** [March 19, 2017, 2:43pm UTC](https://meta.discourse.org/t/how-to-refresh-topic-title-when-it-was-changed-in-one-of-plugins-custom-controllers/59480 "2017-03-19T14:43:00Z")

</div>

I update topic using custom controller where function was triggered through ajax. Client side code gets back result with a changed topic title but I’m unable to figure out how to refresh topic title in topic-view inside …

---

## [Getting the NoMethodError error when editing the topic due to my plugin](https://meta.discourse.org/t/getting-the-nomethoderror-error-when-editing-the-topic-due-to-my-plugin/59471)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 4\
**Last updated:** [March 19, 2017, 11:28am UTC](https://meta.discourse.org/t/getting-the-nomethoderror-error-when-editing-the-topic-due-to-my-plugin/59471 "2017-03-19T11:28:53Z")

</div>

Hi I am getting following error when trying to update ( edit ) the post Error Info NoMethodError - undefined method \`call' for nil:NilClass Did you mean? caller: lib/post\_revisor.rb:335:in \`block (2 levels) in updat…

---

## [A question about user\_auth\_tokens](https://meta.discourse.org/t/a-question-about-user-auth-tokens/59307)

<div class="topic-metadata">

**Author:** [@eriko](https://meta.discourse.org/u/eriko)\
**Replies:** 4\
**Last updated:** [March 16, 2017, 9:01pm UTC](https://meta.discourse.org/t/a-question-about-user-auth-tokens/59307 "2017-03-16T21:01:26Z")

</div>

I see since the last time that I looked that users can have more than one auth token. Is this effectively one token per device/browser combination or is it something else? Also is it possible to sent this auth token to…

---

## [Should all plugins be cloned as the \`discourse\` user?](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [March 16, 2017, 8:03pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305 "2017-03-16T20:03:41Z")

</div>

Is that true for all plugins, or just this one?

---

## [Problem creating a category using the API](https://meta.discourse.org/t/problem-creating-a-category-using-the-api/59026)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 2\
**Last updated:** [March 14, 2017, 10:01am UTC](https://meta.discourse.org/t/problem-creating-a-category-using-the-api/59026 "2017-03-14T10:01:52Z")

</div>

I have successfully created a topic using the API (using entry point posts, as described here), which makes me think my process is good. But when I try to create a category (using entry point categories.json, as documen…

---

## [Creating custom notifications](https://meta.discourse.org/t/creating-custom-notifications/58950)

<div class="topic-metadata">

**Author:** [@rimian](https://meta.discourse.org/u/rimian)\
**Replies:** 2\
**Last updated:** [March 13, 2017, 11:13pm UTC](https://meta.discourse.org/t/creating-custom-notifications/58950 "2017-03-13T23:13:31Z")

</div>

Hi! I want to create a custom notification when something happens in my plugin. I can see there is a custom notification type but I’m unsure about how to use it. Something like: data = {title: 'some custom event happe…

---

## [Plugin to clear topic's custom field when timestamp gets changed](https://meta.discourse.org/t/plugin-to-clear-topics-custom-field-when-timestamp-gets-changed/58888)

<div class="topic-metadata">

**Author:** [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)\
**Replies:** 1\
**Last updated:** [March 11, 2017, 7:23pm UTC](https://meta.discourse.org/t/plugin-to-clear-topics-custom-field-when-timestamp-gets-changed/58888 "2017-03-11T19:23:31Z")

</div>

Is it possible for plugin to act on topic timestamp change? Is there an example of it?

---

## [Discussbook on discourse, anybody interested? Not paid, but collaboration](https://meta.discourse.org/t/discussbook-on-discourse-anybody-interested-not-paid-but-collaboration/58876)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 4\
**Last updated:** [March 11, 2017, 4:18pm UTC](https://meta.discourse.org/t/discussbook-on-discourse-anybody-interested-not-paid-but-collaboration/58876 "2017-03-11T16:18:25Z")

</div>

I am not here to promote the website, but I would like to ask anybody if they are interested to collaborate with me to port discussbook ( https://www.discussbook.com ) on discourse platform. discussbook is a QA site on …

---

## [Avatar image path in quoted text](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 3\
**Last updated:** [March 10, 2017, 2:46am UTC](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788 "2017-03-10T02:46:50Z")

</div>

Would it be possible for the avatar image src in quoted text to be changed so that it get’s the absolute path to the avatar image instead of the relative path? Currently, with the wp-discourse plugin, if a comment with …

---

## [How to know if the composer being used for editing topic,creating topic or replying a topic](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 3\
**Last updated:** [March 8, 2017, 5:36pm UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339 "2017-03-08T17:36:09Z")

</div>

In the model properties for composer plugin outlet “composer-fields-below”, I could not find the property of model object which says whether the composer is being used for creating a topic, or editing a topic or being r…

---

## [Unable to run plugin spec](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 2\
**Last updated:** [March 5, 2017, 1:23pm UTC](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413 "2017-03-05T13:23:20Z")

</div>

In my development environment I am unable to run plugin:spec. It returning the below error /.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in \`eval': PG::UndefinedTable: ERROR: r…

---

## [Installing problem - bundle install](https://meta.discourse.org/t/installing-problem-bundle-install/58355)

<div class="topic-metadata">

**Author:** [@Kartheek\_kark](https://meta.discourse.org/u/Kartheek_kark)\
**Replies:** 5\
**Last updated:** [March 4, 2017, 7:44pm UTC](https://meta.discourse.org/t/installing-problem-bundle-install/58355 "2017-03-04T19:44:27Z")

</div>

Good morning, Using bundle install, the installation is infinitely struck at kgio 2.10.0. Can some one help me? Thanks.

---

## [Api - get topic](https://meta.discourse.org/t/api-get-topic/58308)

<div class="topic-metadata">

**Author:** [@furszy](https://meta.discourse.org/u/furszy)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 7:01pm UTC](https://meta.discourse.org/t/api-get-topic/58308 "2017-03-03T19:01:43Z")

</div>

Hi everyone, i’m with a question with the api, get topic to be more precise. i’m getting my post (using http://my-forum/t/id.json) without any metada or css that i have posted to the forum. And when i try to edit my for…

---

## [QUnit uses the nojs page](https://meta.discourse.org/t/qunit-uses-the-nojs-page/58033)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Replies:** 0\
**Last updated:** [February 27, 2017, 7:11pm UTC](https://meta.discourse.org/t/qunit-uses-the-nojs-page/58033 "2017-02-27T19:11:02Z")

</div>

I’m still a relative newbie when it comes to unit tests. But I think it has potential and envision a “safe-mode” feature that could run tests to make determining which plugin is causing a problem easier and therefore hav…

---

## [Testing viewingSelf from plugin outlet](https://meta.discourse.org/t/testing-viewingself-from-plugin-outlet/57576)

<div class="topic-metadata">

**Author:** [@LeoDavidson](https://meta.discourse.org/u/LeoDavidson)\
**Replies:** 4\
**Last updated:** [February 27, 2017, 4:43pm UTC](https://meta.discourse.org/t/testing-viewingself-from-plugin-outlet/57576 "2017-02-27T16:43:27Z")

</div>

I’m using the user-profile-primary plugin outlet to add some things to the user pages. In the .hbs template, I want some things to be conditional on whether the displayed user is the logged on user or someone else. This…

---

## [Reload currentUser object](https://meta.discourse.org/t/reload-currentuser-object/39876)

<div class="topic-metadata">

**Author:** [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Replies:** 7\
**Last updated:** [February 25, 2017, 1:32pm UTC](https://meta.discourse.org/t/reload-currentuser-object/39876 "2017-02-25T13:32:30Z")

</div>

I’m in the midst of working on a plugin that has me changing the values in a custom\_field that are used to calculate a few user methods. I’m then passing those methods to the current user serializer. In the process I ha…

---

## [Plugin with sidebar: how to modify small-width, medium-width, large-width?](https://meta.discourse.org/t/plugin-with-sidebar-how-to-modify-small-width-medium-width-large-width/57801)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 6\
**Last updated:** [February 23, 2017, 7:30pm UTC](https://meta.discourse.org/t/plugin-with-sidebar-how-to-modify-small-width-medium-width-large-width/57801 "2017-02-23T19:30:04Z")

</div>

I am working on a plugin that adds a sidebar to discourse. Because of this sidebar, the width of the topic list is reduced. The consequence is that the small-width, medium-width and large-width media queries are now wro…

---

## [Component shows message on ajax result](https://meta.discourse.org/t/component-shows-message-on-ajax-result/57765)

<div class="topic-metadata">

**Author:** [@rimian](https://meta.discourse.org/u/rimian)\
**Replies:** 1\
**Last updated:** [February 22, 2017, 10:33pm UTC](https://meta.discourse.org/t/component-shows-message-on-ajax-result/57765 "2017-02-22T22:33:57Z")

</div>

I’ve got a stripe payment form in my component. When I get a response back from the ajax request, I want to display a message to the user. I’ve got something basic working but I don’t understand how to render the respon…

---

## [Vanilla Migration Issue](https://meta.discourse.org/t/vanilla-migration-issue/51632)

<div class="topic-metadata">

**Author:** [@mmuyskens](https://meta.discourse.org/u/mmuyskens)\
**Replies:** 7\
**Last updated:** [February 21, 2017, 11:16pm UTC](https://meta.discourse.org/t/vanilla-migration-issue/51632 "2017-02-21T23:16:18Z")

</div>

Not sure if this is the correct tag - however; vanilla.rb errors out at line 240 if null date fields. Suggest if statement to replace null with 0000-00-00 00:00:00 Thanks, Mark

---

## [Localhost:3000/users gives no-results](https://meta.discourse.org/t/localhost-3000-users-gives-no-results/57551)

<div class="topic-metadata">

**Author:** [@designbygio](https://meta.discourse.org/u/designbygio)\
**Replies:** 6\
**Last updated:** [February 21, 2017, 2:02pm UTC](https://meta.discourse.org/t/localhost-3000-users-gives-no-results/57551 "2017-02-21T14:02:50Z")

</div>

I install my local version of discourse which seems to work pretty fine. I have an admin user and i created other 2 test users, which i can see the profile and i can see when i search for them in the search bar. Anyway…

---

## [Plugin RSpec "get" problems](https://meta.discourse.org/t/plugin-rspec-get-problems/57256)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Replies:** 10\
**Last updated:** [February 20, 2017, 4:43am UTC](https://meta.discourse.org/t/plugin-rspec-get-problems/57256 "2017-02-20T04:43:25Z")

</div>

My “learning experience” plugin works. Not everything I have tried worked, but I have been able to find ways to do much of what I’ve been interested in having it do. Experience has taught me that I prefer to test often …

---

## [How to get user api\_key based on user\_id?](https://meta.discourse.org/t/how-to-get-user-api-key-based-on-user-id/57416)

<div class="topic-metadata">

**Author:** [@mrrao](https://meta.discourse.org/u/mrrao)\
**Replies:** 4\
**Last updated:** [February 17, 2017, 6:57am UTC](https://meta.discourse.org/t/how-to-get-user-api-key-based-on-user-id/57416 "2017-02-17T06:57:54Z")

</div>

I can see that admin can create api\_key for individual user. I want to get api\_key for a particular user. How can i do that. Some one please help me to resolve this. Thanks

---

## [Using Discourse in a web app](https://meta.discourse.org/t/using-discourse-in-a-web-app/57455)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 3\
**Last updated:** [February 16, 2017, 3:19pm UTC](https://meta.discourse.org/t/using-discourse-in-a-web-app/57455 "2017-02-16T15:19:54Z")

</div>

I am a web developer, new to Discourse. I would like to create a web app where users could discuss a document. The UI would look like this: a main area showing the document, other areas/windows/tabs where users could …

---

## [Replacement for View class (in old directory views) in js](https://meta.discourse.org/t/replacement-for-view-class-in-old-directory-views-in-js/57485)

<div class="topic-metadata">

**Author:** [@Clement\_Decou](https://meta.discourse.org/u/Clement_Decou)\
**Replies:** 2\
**Last updated:** [February 16, 2017, 4:03pm UTC](https://meta.discourse.org/t/replacement-for-view-class-in-old-directory-views-in-js/57485 "2017-02-16T16:03:22Z")

</div>

The directory views doesn’t exist in discourse 1.8 so i don’t find the class TopicView… There is an example of an old code and i want to replace it : import TopicView from "discourse/views/topic"; TopicView.reopen({ …

---

## [How to update user\_id of post using api?](https://meta.discourse.org/t/how-to-update-user-id-of-post-using-api/57413)

<div class="topic-metadata">

**Author:** [@mrrao](https://meta.discourse.org/u/mrrao)\
**Replies:** 3\
**Last updated:** [February 16, 2017, 11:20am UTC](https://meta.discourse.org/t/how-to-update-user-id-of-post-using-api/57413 "2017-02-16T11:20:54Z")

</div>

I’m using ruby api to integrate discourse in my website. I’m successfully posting comments for a topic using api, but posted\_by is showing as admin user. How can i replace it by logged in user. Thanks

---

## [Can't import view](https://meta.discourse.org/t/cant-import-view/50402)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 6\
**Last updated:** [February 16, 2017, 10:52am UTC](https://meta.discourse.org/t/cant-import-view/50402 "2017-02-16T10:52:39Z")

</div>

Something weird happening with importing modules. Here’s a snippet from my plugin import PostModel from 'discourse/models/post'; import { withPluginApi } from 'discourse/lib/plugin-api'; import { slot, loadGoogle } from…

---

## [Able to use the 'extraNavItem' custom html outlet?](https://meta.discourse.org/t/able-to-use-the-extranavitem-custom-html-outlet/51928)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Replies:** 5\
**Last updated:** [February 14, 2017, 9:01pm UTC](https://meta.discourse.org/t/able-to-use-the-extranavitem-custom-html-outlet/51928 "2017-02-14T21:01:35Z")

</div>

I’m attempting to add a custom link to the navbar (Ideally something where I’d be able to specify a name and a relative URL for that pill to go to). It’s similar functionality to the ‘bugs’ or ‘features’ links on meta, b…

---

## [How to implement Discourse with an already built Rails project](https://meta.discourse.org/t/how-to-implement-discourse-with-an-already-built-rails-project/57353)

<div class="topic-metadata">

**Author:** [@Winston\_Pogi](https://meta.discourse.org/u/Winston_Pogi)\
**Replies:** 2\
**Last updated:** [February 14, 2017, 8:23pm UTC](https://meta.discourse.org/t/how-to-implement-discourse-with-an-already-built-rails-project/57353 "2017-02-14T20:23:50Z")

</div>

I want to use Discourse as a private messaging as well as forum. How can I use it when I already created my rails project and it only lacks the messaging and forum feature. I have read a lot of articles but I can’t find …

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

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