3 ms·
> a slice of an array based on an integer post ID Can't see how that works when you've got threading going on. e.g. You have posts 1-10 and pages of size 5.
by zimpenfish 3y ago
> a slice of an array based on an integer post ID
Can't see how that works when you've got threading going on.
e.g. You have posts 1-10 and pages of size 5. 1, 2, 5 are top level posts. 3, 4 are replies to 1. 6, 7, 8, 9 are replies to 5. 10 is a reply to 2. Which means page 1 contains 1, 2, 3, 4, 10 and page 2 is 5, 6, 7, 8, 9.
- chefandy 3y agoOh threading— yeah that's true. I still think of forums in the old school model.