Commit Graph

7 Commits (c62b88e3f273631be82c736b8b2cf9df1bcecea1)

Author SHA1 Message Date
nightpool 5fb013878f Fix context performance by partially reverting ()
* Fix context performance by partially reverting 

* Fix code style issue

* fix off-by-1 error in thread limits

* code style fix
Eugen Rochko f31e58af9e
Fix nil error in StatusFilter ()
Fix 
Eugen Rochko a5293fdf61
Fix n+1 queries in StatusThreadingConcern ()
Akihiko Odaki 1258efa882 Paginate descendant statuses in public page ()
Akihiko Odaki 519119f657 Paginate ancestor statuses in public page ()
This also limits the statuses returned by API, but pagination is not
implemented in Web API yet. I still expect it brings user experience
better than making a user wait to fetch all ancestor statuses and flooding
the column with them.
Akihiko Odaki 498327b2e3 Exclude status itself from context query ()
ancestor_statuses and descendant_statuses used to include the root status
itself, but the behavior is confusing because the root status is not
an ancestor nor descendant.
Matt Jankowski 6201f96b8a Introduce StatusThreadingConcern ()
* Add a StatusFilter class to identify visibility of statuses by accounts

* Extract StatusThreadingConcern from Status

* Clarify purpose of checking for nil account