diff --git a/app/controllers/api/v1/statuses/reactions_controller.rb b/app/controllers/api/v1/statuses/reactions_controller.rb index 9b25dfebe2..eb4b6f3411 100644 --- a/app/controllers/api/v1/statuses/reactions_controller.rb +++ b/app/controllers/api/v1/statuses/reactions_controller.rb @@ -42,9 +42,7 @@ class Api::V1::Statuses::ReactionsController < Api::V1::Statuses::BaseController def ordered_reactions StatusReaction.where(status: @status) - .group(:status_id, :id, :account_id, :name, :custom_emoji_id).order( - Arel.sql('MIN(created_at)').asc - ) + .group(:status_id, :id, :account_id, :name, :custom_emoji_id) end def value_for_reaction_me_column(account) @@ -93,6 +91,6 @@ class Api::V1::Statuses::ReactionsController < Api::V1::Statuses::BaseController end def pagination_params(core_params) - params.slice(:limit).permit(:limit).merge(core_params) + params_slice(:limit).merge(core_params) end end