@nodebb/nodebb-plugin-reactions 2.1.7 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/client.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodebb/nodebb-plugin-reactions",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.3.0"
6
6
  },
package/public/client.js CHANGED
@@ -265,15 +265,17 @@ $(document).ready(function () {
265
265
  if (mouseOverReactionEl && mouseOverReactionEl.length) {
266
266
  const pid = mouseOverReactionEl.attr('data-pid');
267
267
  const mid = mouseOverReactionEl.attr('data-mid');
268
+ const reaction = mouseOverReactionEl.attr('data-reaction');
268
269
  const type = pid ? 'post' : 'message';
269
270
  const data = await socket.emit('plugins.reactions.getReactionUsernames', {
270
271
  type: type,
271
272
  mid: mid,
272
273
  pid: pid,
273
- reaction: mouseOverReactionEl.attr('data-reaction'),
274
+ reaction: reaction,
274
275
  });
275
276
 
276
277
  if (mouseOverReactionEl && mouseOverReactionEl.length &&
278
+ reaction === mouseOverReactionEl.attr('data-reaction') &&
277
279
  (
278
280
  (type === 'post' && pid === mouseOverReactionEl.attr('data-pid')) ||
279
281
  (type === 'message' && mid === mouseOverReactionEl.attr('data-mid'))