From: abcang Date: Fri, 24 Nov 2017 17:41:07 +0000 (+0900) Subject: Fix unnecessary order (#5807) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=269a445c0b24de37972cf35b26f9362c2b62122c;p=mastodon.git Fix unnecessary order (#5807) --- diff --git a/app/models/status.rb b/app/models/status.rb index 26095070f..d6810941a 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -175,7 +175,7 @@ class Status < ApplicationRecord end def reblogs_map(status_ids, account_id) - select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).map { |s| [s.reblog_of_id, true] }.to_h + select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).reorder(nil).map { |s| [s.reblog_of_id, true] }.to_h end def mutes_map(conversation_ids, account_id)