Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Fix bug in loading more comments when sort is set to new #438

Closed happy-river closed 2 years ago

happy-river commented 2 years ago

To reproduce this bug, make a post and add over twenty comments, with a number in each one so you can tell in which order you entered them. Log in as a different user and upvote a few of the oldest ones. Then scroll to the top and set the sort order to "new", and scroll down. After you scroll past the oldest comment, some of the newer ones will repeat below it.

Fix by passing the sort order parameter in all the calls to renderComments.