]> cat aescling's git repositories - mastodon.git/commitdiff
Fix unnecessary order (#5807)
authorabcang <abcang1015@gmail.com>
Fri, 24 Nov 2017 17:41:07 +0000 (02:41 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 24 Nov 2017 17:41:07 +0000 (18:41 +0100)
app/models/status.rb

index 26095070f6c768d789303dd9b3acf8e735e4f461..d6810941a602cf2bc6f2b4ad70766f4fbf29b91f 100644 (file)
@@ -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)