logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 269a445c0b24de37972cf35b26f9362c2b62122c
parent: 2b51b4094c18c56fe8252d90db2b62ef69913fac
Author: abcang <abcang1015@gmail.com>
Date:   Sat, 25 Nov 2017 02:41:07 +0900

Fix unnecessary order (#5807)


Diffstat:

Mapp/models/status.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)