main ← fix-reactions-sometimes-not-dislayed-when-like-count-is-missing
drafted 10:44AM - 25 Dec 25 UTC
When a user had reacted to a post but the undo window had passed and the post's …like_count was 0, the like action was completely omitted from actions_summary. This happened because the serializer only included actions when either can_act was true OR count was present.
The reactions plugin depends on likeAction being present to properly display reactions. When likeAction was null, users couldn't see their own reactions on certain posts - particularly older posts where like_count hadn't been synced (common on sites where discourse_reactions_like_sync_enabled is disabled by default).
The fix adds a third condition: include the action if the user has acted on it. This ensures users can always see their own actions, even if they can no longer undo them and the count isn't displayed.
Ref - https://meta.discourse.org/t/391609