The revert notification is triggered even if the rollback does nothing (current version is equal to the one being reverted to).
Just need to check that the content of both revisions are not equal before sending the notification.
Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Notifications&oldid=580155465#Incorrect_notification_about_a_self-revert
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=54007