diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-16 16:08:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 16:08:51 +0200 |
commit | 7cc71748cecfa6cb35bc53e656df39d6f9219ae2 (patch) | |
tree | 98d7403bd98132df0a060a772277e6401461c8d1 /.dockerignore | |
parent | aec70b44fc551db6471c8bc5210688b154ac661f (diff) |
Ensure that feed renegeration restores non-zero items (#5409)
Fix #5398 Ordering the home timeline query by account_id meant that the first 100 items belonged to a single account. There was also no reason to reverse-iterate over the statuses. Assuming the user accesses the feed halfway-through, it's better to have recent statuses already available at the top. Therefore working from newer->older is ideal. If the algorithm ends up filtering all items out during last-mile filtering, repeat again a page further. The algorithm terminates when either at least one item has been added, or if the database query returns nothing (end of data reached)
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions