Show all comments for an event
Summary
Currently only the 30 newest comments for an event are displayed. All comments seem to be stored in the DB, because if I delete 3 visible comments, then 3 additional older comments (which were not visible before the deletion) become visible again.
This is important because in Hamburg we use events for inviting FSs to important meetings. If FS Abc cannot come but wants to give their vote FS Xyz who will attend, then Abc writes a comment to the event saying "I give my vote to Xyz".
The problem is that only the newest 30 vote transferals are visible. I understand that showing all comments takes a bit more bandwidth, but in this case I think that it's justified.
Steps to reproduce
- Create a new event.
- Write 35 comments, each containing the numbers 1, , 3, ..., 35.
- Check the list of comments. You will see comments 6, 7, ..., 35.
- Now delete comments 35 and 34. You will see comments 4, 5, 6, ..., 33.
Here is an example event: https://beta.foodsharing.de/?page=event&id=12288
What is the current bug behavior?
All comments are stored in the DB, but only the newest 30 comments are visible after the event.
What is the expected correct behavior?
Display all comments for an event.
Relevant error messages and/or screenshots
(Include any relevant error messages or screenshots here)
Possible fixes
Remove the lines of code which only select the newest 30 comments and return all comments instead.