Browse Source

Fix unnecessary order (#5807)

closed-social-v3
abcang 6 years ago
committed by Eugen Rochko
parent
commit
269a445c0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/status.rb

+ 1
- 1
app/models/status.rb View 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)

Loading…
Cancel
Save