diff options
author | abcang <abcang1015@gmail.com> | 2017-11-25 02:41:07 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-11-24 18:41:07 +0100 |
commit | 269a445c0b24de37972cf35b26f9362c2b62122c (patch) | |
tree | 5f94db5942facdc2b94b23758ecb8fa941c4e0c9 /app/models | |
parent | 2b51b4094c18c56fe8252d90db2b62ef69913fac (diff) |
Fix unnecessary order (#5807)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |