Post keeps the number of likes after who liked the post, has been deleted

Hello,

I noticed sometimes the number of likes are not equal with the user avatars who liked the post. This is happening when the user who liked the post has been deleted. Is this for statistic reason or a bug?

Thanks :slightly_smiling_face:

You can check the first image’s post here…

Screenshot 2022-02-05 at 13.55.47

Screenshot 2022-02-05 at 13.56.21

1 Like

@dodesz I think its the way it should be

Does look like we have an out-of-sync cache.

Probably related to a user being deleted from the system. I am guessing we may not be forcing a refresh of the post like count on posts that a deleted user voted on.

Putting a #pr-welcome on this for now.

2 Likes

Would deleting those likes also affect the number of likes obtained toward the poster’s like count for badges?

I think you can trivially cause a re-sync on the post count if you like / unlike the post. Looks like the issue in the OP is now resolved due to a like/unlike sequence.

1 Like