# Discourse Retort

**URL:** https://meta.discourse.org/t/discourse-retort/35903
**Category:** Plugin
**Tags:** end-of-life
**Created:** [November 22, 2015, 11:53am UTC](https://meta.discourse.org/t/discourse-retort/35903 "2015-11-22T11:53:58Z")
**Posts on this page:** 20
**Page:** 7

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [July 25, 2017, 3:34am UTC](https://meta.discourse.org/t/discourse-retort/35903/127 "2017-07-25T03:34:22Z")

</div>

Yep, I’m aware of this and will fix. It’s a bit more work because Retort uses the new widget system and the new emoji picker is still a component, but I should have some time to puzzle it out in the near future.

---

<div class="post-metadata">

### Author: ![Timothy\_Vail](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timothy_vail/32/90872_2.png) [@Timothy\_Vail](https://meta.discourse.org/u/Timothy_Vail)
#### Post date: [July 25, 2017, 8:16pm UTC](https://meta.discourse.org/t/discourse-retort/35903/128 "2017-07-25T20:16:15Z")

</div>

I also had this same issue and had to uninstall the retort plugin. Anything I could do to speed up the process?

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [July 25, 2017, 9:20pm UTC](https://meta.discourse.org/t/discourse-retort/35903/129 "2017-07-25T21:20:59Z")

</div>

PRs welcome 🙂 I’ll need to do the same for Babble, which has the same technical inconvenience (Babble is also widget based)

---

<div class="post-metadata">

### Author: ![kyle\_boyce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_boyce/32/75951_2.png) [@kyle\_boyce](https://meta.discourse.org/u/kyle_boyce)
#### Post date: [July 28, 2017, 12:55am UTC](https://meta.discourse.org/t/discourse-retort/35903/130 "2017-07-28T00:55:11Z")

</div>

I’ve installed this and the settings appear but when I go to react to a post there is no icon anywhere?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [July 28, 2017, 2:15am UTC](https://meta.discourse.org/t/discourse-retort/35903/131 "2017-07-28T02:15:40Z")

</div>

You should probably read the topic before installing plugins blindly, it has already been established that recent changes to Discourse, broke this plugin. The author will fix it when he has time available.

---

<div class="post-metadata">

### Author: ![kyle\_boyce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_boyce/32/75951_2.png) [@kyle\_boyce](https://meta.discourse.org/u/kyle_boyce)
#### Post date: [July 28, 2017, 12:21pm UTC](https://meta.discourse.org/t/discourse-retort/35903/132 "2017-07-28T12:21:35Z")

</div>

The author should edit the original post saying so 😃

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 28, 2017, 12:24pm UTC](https://meta.discourse.org/t/discourse-retort/35903/133 "2017-07-28T12:24:33Z")

</div>

Temporarily moved into #plugin:broken-plugin.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [July 30, 2017, 10:51am UTC](https://meta.discourse.org/t/discourse-retort/35903/134 "2017-07-30T10:51:42Z")

</div>

Alright, I’ve pushed a fix for this to work with the latest Discourse, although I’ll need to wait for this to get merged in:

[https://github.com/discourse/discourse/pull/5009](https://github.com/discourse/discourse/pull/5009)

So that the new emoji picker can support opening without a composer present. Thanks for your patience 🙂

---

<div class="post-metadata">

### Author: ![kyle\_boyce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_boyce/32/75951_2.png) [@kyle\_boyce](https://meta.discourse.org/u/kyle_boyce)
#### Post date: [August 1, 2017, 4:19pm UTC](https://meta.discourse.org/t/discourse-retort/35903/135 "2017-08-01T16:19:29Z")

</div>

This avatar flair is appeared out of place.

I have made no changes to the theme settings..

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/3/73fe32f26a2ba2482818c6efde324bfc7cbdee99.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 1, 2017, 4:18pm UTC](https://meta.discourse.org/t/discourse-retort/35903/136 "2017-08-01T16:18:47Z")

</div>

Retort CSS is breaking the avatar flair position.

---

<div class="post-metadata">

### Author: ![kjump29](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kjump29](https://meta.discourse.org/u/kjump29)
#### Post date: [August 2, 2017, 8:43am UTC](https://meta.discourse.org/t/discourse-retort/35903/137 "2017-08-02T08:43:45Z")

</div>

Thank you James for your work and this fix.

Can you estimate how long it will take until it is merged?

---

<div class="post-metadata">

### Author: ![kjump29](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kjump29](https://meta.discourse.org/u/kjump29)
#### Post date: [August 23, 2017, 11:14am UTC](https://meta.discourse.org/t/discourse-retort/35903/138 "2017-08-23T11:14:30Z")

</div>

I’ve updated to the latest version. Unfortunately, i have still the following issue with the retort plugin. It seems that it is only working properly for the last post of each thread.

In this example (see screenshot below), i’ve posted a first comment on a topic and it works fine (i.e. in my case i can like or dislike the comment).

 ![Screenshot1](https://global.discourse-cdn.com/meta/original/3X/8/f/8f1dc64aa86d1d0599d38e7123d8ceebdd66a38e.png)

Then i’ve posted second comment on the topic. Now the plugin works properly for the second comment, but no longer for the first comment (see screenshot below).

 ![Screenshot2](https://global.discourse-cdn.com/meta/original/3X/6/8/682305d9bd6dc070f963e6a411fedbeb1a1583df.png)

Can anyone help with this issue please? Thank you so much

---

<div class="post-metadata">

### Author: ![DiscourseMetrics](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discoursemetrics/32/55756_2.png) [@DiscourseMetrics](https://meta.discourse.org/u/DiscourseMetrics)
#### Post date: [August 31, 2017, 1:26pm UTC](https://meta.discourse.org/t/discourse-retort/35903/139 "2017-08-31T13:26:25Z")

</div>

Does this plugin work in prod now? 🙂

---

<div class="post-metadata">

### Author: ![DiscourseMetrics](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discoursemetrics/32/55756_2.png) [@DiscourseMetrics](https://meta.discourse.org/u/DiscourseMetrics)
#### Post date: [September 6, 2017, 8:51am UTC](https://meta.discourse.org/t/discourse-retort/35903/140 "2017-09-06T08:51:26Z")

</div>

I’ll answer myself: no it doesn’t 🙂 The emoji-button shows up but not the picker 🙂

---

<div class="post-metadata">

### Author: ![MK2k](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mk2k/32/49271_2.png) [@MK2k](https://meta.discourse.org/u/MK2k)
#### Post date: [September 8, 2017, 11:50pm UTC](https://meta.discourse.org/t/discourse-retort/35903/141 "2017-09-08T23:50:46Z")

</div>

@gdpelican I second what @kjump29 reported, retort only shows the picker for the last comment within a thread. Is there any chance for a fix?

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [September 11, 2017, 3:19am UTC](https://meta.discourse.org/t/discourse-retort/35903/142 "2017-09-11T03:19:47Z")

</div>

`display: flex` is added to the `emoji-picker` of the wrong post.

The correct dark background overlay is activated (i.e. the one associated with the relevant post), but always the _last_ `emoji-picker` is set to `flex`. This is a bug.

The correct behavior is to set `display: flex` on the `emoji-picker` of the relevant post.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [September 11, 2017, 3:44pm UTC](https://meta.discourse.org/t/discourse-retort/35903/143 "2017-09-11T15:44:37Z")

</div>

File `retort-picker.js.es6`:

```plaintext
_loadCategoriesEmojis() {
    if (siteSettings.retort_limited_emoji_set) {
      const $picker = $('.emoji-picker')
      $picker.html("")
      siteSettings.retort_allowed_emojis.split('|').map((code) => {
        $picker.append(`<button type="button" title="${code}" class="emoji" />`)
        $(`button.emoji[title="${code}"]`).css("background-image", `url("${emojiUrlFor(code)}")`)
      })
      this._bindEmojiClick($picker);
    } else {
      this._super()
    }
  }

```

The line:

`const $picker = $('.emoji-picker')`

should pick up a whole array of emoji pickers (each one with class emoji-picker), and the line:

`this._bindEmojiClick($picker);`

probably needs to bind to only one picker (the one within the current post). However, since it binds to a list, I suspect that it is always binding to the last picker, which is the picker within the last post. And since that picker is hidden by the wrapper if it is not active, no picker ends up being shown.

Now, `$picker = $('.emoji-picker')` might just pick up the last DOM element with the class emoji-picker, in which case it would have produced the current behavior right away.

I am pretty sure this is a bug, and the line should probably be:

`const $picker = $('.emoji-picker', this.rootDomNode)`

or something to base the CSS search off the current root of the DOM tree to get that particular emoji picker under the current post.

The current code should work fine when there is only _one_ emoji picker on the page, I believe…

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 11, 2017, 6:57pm UTC](https://meta.discourse.org/t/discourse-retort/35903/144 "2017-09-11T18:57:32Z")

</div>

Hi, thanks for the reports, sorry for the delay. I’ve updated Retort to work with the latest version of Discourse now. Please let me know if you find any further issues?

@sam This should be good to reactivate now as a non-broken plugin \o/

---

<div class="post-metadata">

### Author: ![MK2k](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mk2k/32/49271_2.png) [@MK2k](https://meta.discourse.org/u/MK2k)
#### Post date: [September 11, 2017, 7:55pm UTC](https://meta.discourse.org/t/discourse-retort/35903/145 "2017-09-11T19:55:01Z")

</div>

Thanks for the fix @gdpelican.

It works in standard threads now.

I found 2 issues:

1. It doesn’t show the picker in message threads

2. When the picker is shown, the left hand side has clickable categories, but clicking them doesn’t work

Tested with Firefox 55.0.3

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [September 12, 2017, 6:42am UTC](https://meta.discourse.org/t/discourse-retort/35903/146 "2017-09-12T06:42:35Z")

</div>

How come it becomes like this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/d/2d5f96dc2e05e11f1117622a286349f9c5902e80.jpg)

Not centered on screen. Buttons not centered. Button widths screwed up.,

Strange because I can see `display: flex` put on the wrapper, which certainly will not make the buttons wrap.

Am I missing a CSS file or something?

[Previous page](https://meta.discourse.org/t/discourse-retort/35903.md?page=6)

[Next page](https://meta.discourse.org/t/discourse-retort/35903.md?page=8)
