Commit Graph

8 Commits (b922ad7a1b4bc8d968d0df2c7f307d4fec53435d)

Author SHA1 Message Date
Eugen Rochko 45ebdb72ca
Add support for language preferences for trending statuses and links ()
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
Eugen Rochko a794117679
Fix individually approved/rejected statuses/links showing as pending review ()
Eugen Rochko 9b58fb1ea4
Add descriptions to trending features in admin UI ()
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
Eugen Rochko 3aebe711fd
Change languages to be listed under standard instead of native name in admin UI ()
Eugen Rochko 12b3ff6c6d
Fix error on trending hashtags/links pages in admin UI due to missing constant ()
Eugen Rochko 6e50134a42
Add trending links ()
* Add trending links

* Add overriding specific links trendability

* Add link type to preview cards and only trend articles

Change trends review notifications from being sent every 5 minutes to being sent every 2 hours

Change threshold from 5 unique accounts to 15 unique accounts

* Fix tests