Right now, a notification is only sent for the first like on any of your posts.
But I think there’s a big difference between a post being liked once and 10 times. The second shows enjoyment of the post by many people, instead of just one.
I’m proposing that we show a notification (that gets collapsed into the previous ones, just like the n replies) for 1, 5, 10, 50, 100, 500, … likes.
Sample code for checking the number: (ruby-ish pseudocode, I don’t feel like looking up the math function names)
def should_notify?(total_likes)
return true if total_likes == 1
normalized = total_likes / pow(10, floor(log10(total_likes)))
(normalized.is_integer? && (normalized == 1 || normalized == 5))
end