about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-11-25 02:41:07 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-11-24 18:41:07 +0100
commit269a445c0b24de37972cf35b26f9362c2b62122c (patch)
tree5f94db5942facdc2b94b23758ecb8fa941c4e0c9 /app/models
parent2b51b4094c18c56fe8252d90db2b62ef69913fac (diff)
Fix unnecessary order (#5807)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
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)