1
0
Fork 0
forked from fedi/mastodon

Revert "Sort self-replies to the top of the thread (#9296)" (#9335)

This reverts commit 074960bb0f.

Fix #9315
This commit is contained in:
Eugen Rochko 2018-11-23 21:58:01 +01:00 committed by GitHub
parent 0206d569c3
commit 87a43274f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,9 +86,6 @@ module StatusThreadingConcern
# Order ancestors/descendants by tree path
statuses.sort_by! { |status| ids.index(status.id) }
# Bring self-replies to the top
statuses.sort_by! { |status| status.in_reply_to_account_id == status.account_id ? -1 : 0 }
end
def relations_map_for_account(account, account_ids, domains)