Duplicate notifications for likes?

AI-generated summary

In the Bug category, DeanMarkTaylor reported receiving duplicate notifications for likes on a single post, noting that two like arrows appeared where only one is expected. While riking initially suggested a recent regression related to thread title changes, DeanMarkTaylor clarified that the specific post in question had not been edited to change its title. sam confirmed the issue and identified the root cause: the bug has existed for a long time and occurs when User A likes a post, User B edits it, and User C likes it again, triggering a second notification. The issue was subsequently fixed via commit 5ab7f7e.

I’ve seen multiple notifications for “like” on a post here on meta:

Note the two arrows on the left indicate likes for the same post - where usually you only get one.

Also note the “solved” plugin notification in between (arrow on right) - perhaps it’s related?

3 إعجابات

This may be a new bug somehow cc @sam

إعجاب واحد (1)

This is the issue where the thread title changing causes a second notification to issue.

It’s a relatively recent regression.

إعجاب واحد (1)

Although looking at the topic history for the first post - there is not a title change for:
https://meta.discourse.org/t/changing-text-of-new-topic-button-on-a-single-category-page/30135/1

Confirmed, I got one yesterday as well, will figure this out.

إعجاب واحد (1)

This has existed forever, it turns out … simple repro

  • user A likes post
  • user B edits post
  • user C likes post

Double notification.

إعجابَين (2)

Fixed per

https://github.com/discourse/discourse/commit/5ab7f7e88d59e015fe35990cb2df33c2dca03e56

8 إعجابات