FIX: Do not create a double like notification. (PR #7999)

When a user liked, unliked and liked again the same post, the poster would receive a notification such as “X and X liked …”. This happened because PostActionNotifier.post_action_created was called twice.

GitHub

You’ve signed the CLA, udan11. Thank you! This pull request is ready for review.

See #perform and line 91.

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/why-are-two-of-the-same-user-liking-the-same-post/116113/8