Thanks for the draft PR, it does seem like pagination for reactions is inaccurate now and seems to repeat.
I am not sure if the correct fix is to set the post_id. It looks like pagination uses before_reaction_user_id (see here). Potentially even removing line 27 (the PR) would help since it’s likely set in the flattened reaction above.