You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine you have two regular reactions in post_reactions with IDs 1, 2 and one anonymous reaction in post_anonymous_reactions with ID 1. If all are for the same post, the API returns all 3 reactions with the singular post_reactions type. This means two of the items have the same ID yet are different objects - one will be missing a user relationship & have a null userId. Since the anonymous reactions come last, the frontend overrides the original post_reaction of ID 1 with the "fake" (anonymous) one, thus making it seem like there are 2 anonymous votes instead of 1. This may break other stuff as well.
The text was updated successfully, but these errors were encountered:
Imagine you have two regular reactions in
post_reactions
with IDs1, 2
and one anonymous reaction inpost_anonymous_reactions
with ID 1. If all are for the same post, the API returns all 3 reactions with the singularpost_reactions
type. This means two of the items have the same ID yet are different objects - one will be missing a user relationship & have a nulluserId
. Since the anonymous reactions come last, the frontend overrides the originalpost_reaction
of ID 1 with the "fake" (anonymous) one, thus making it seem like there are 2 anonymous votes instead of 1. This may break other stuff as well.The text was updated successfully, but these errors were encountered: