diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-02 18:11:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02 18:11:13 +0200 |
commit | 70ddef2654a931827ce5e4323e3042365f6078f2 (patch) | |
tree | 05ed40d6d1b218a5131199c88d0c9cd1fa0091a0 /app/controllers/admin | |
parent | ac6935b629f5e9cd07cca468a6f3588a6e585e25 (diff) |
Change trending hashtags to not disappear instantly after midnight (#11712)
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/tags_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/tags_controller.rb b/app/controllers/admin/tags_controller.rb index 25d9b7d3d..8bd4e5f8b 100644 --- a/app/controllers/admin/tags_controller.rb +++ b/app/controllers/admin/tags_controller.rb @@ -57,7 +57,7 @@ module Admin scope = scope.unreviewed if filter_params[:review] == 'unreviewed' scope = scope.reviewed.order(reviewed_at: :desc) if filter_params[:review] == 'reviewed' scope = scope.pending_review.order(requested_review_at: :desc) if filter_params[:review] == 'pending_review' - scope.order(score: :desc) + scope.order(max_score: :desc) end def filter_params |