Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Off by one in likes #23911

Closed
dzver opened this issue Dec 19, 2024 · 2 comments · Fixed by #23912
Closed

Off by one in likes #23911

dzver opened this issue Dec 19, 2024 · 2 comments · Fixed by #23912

Comments

@dzver
Copy link

dzver commented Dec 19, 2024

Expected behavior

When liking a post and it has 5 likes, I should see 5 likes and 5 avatars.

Actual behavior

I sometimes see 6 avatars and 5 likes, and sometimes see -1 likes.

Steps to reproduce the behavior

When browsing p2s, just like - it doesn't always happen but it happens. Choose posts with 1-5 likes.

The -1 like has a consistent path to reproduce:

  • Like a post with 0 likes from the list of posts
  • Click the individual post to read it, you'll see no likes present
  • Unlike and like
  • -1 appears
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]
@dangermattic
Copy link
Collaborator

dangermattic commented Dec 19, 2024

Thanks for reporting! 👍

@kean
Copy link
Contributor

kean commented Dec 19, 2024

Hey, thanks for reporting it. I fixed it in #23912 and we'll ship in 25.6 (early Jan).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants