1
0
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-21 02:25:02 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
Matt Jankowski
1ef014802b
Refactor Trends::Query to avoid brakeman sql injection warnings () 2023-07-12 14:19:20 +02:00
Eugen Rochko
fd9a9b07c2
Fix trends returning less results per page when filtered in REST API ()
- Change filtering and pagination to occur in SQL instead of Redis
- Change rank/score displayed on trends in admin UI to be locale-specific
2022-04-08 17:10:53 +02:00
Eugen Rochko
465ee7792f
Fix pagination header on empty trends responses in REST API () 2022-04-07 18:06:15 +02:00
Eugen Rochko
e3a2203061
Add offset pagination to trends in REST API () 2022-03-26 00:26:50 +01:00
Eugen Rochko
27965ce5ed
Add trending statuses ()
* Add trending statuses

* Fix dangling items with stale scores in localized sets

* Various fixes and improvements

- Change approve_all/reject_all to approve_accounts/reject_accounts
- Change Trends::Query methods to not mutate the original query
- Change Trends::Query#skip to offset
- Change follow recommendations to be refreshed in a transaction

* Add tests for trending statuses filtering behaviour

* Fix not applying filtering scope in controller
2022-02-25 00:34:14 +01:00