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 „Gefällt mir“

This may be a new bug somehow cc @sam

1 „Gefällt mir“

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

It’s a relatively recent regression.

1 „Gefällt mir“

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 „Gefällt mir“

This has existed forever, it turns out … simple repro

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

Double notification.

2 „Gefällt mir“

Fixed per

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

8 „Gefällt mir“