Do not send notifications when user likes or repeats someone's status again and again
How to reproduce the like-unlike-like notifications:
- Like someone's status
- Unlike it
- Like it again
What's wrong: The user will receive notification for every one of your likes. If they reload the page after unlike, the notification will disappear but will come back again after another like. You can like-unlike the status and spam someone's notifications.
The same is for repeat-unrepeat-repeat notifications.
Please check out !1382 for changed tests.
Also I've added new checks to https://git.pleroma.social/pleroma/pleroma/blob/develop/lib/pleroma/notification.ex that should skip next notifications, but we erase previous ones in
ActivityPub.unannounce/4, so it doesn't work.