Skip to content
Snippets Groups Projects
Unverified Commit 074960bb authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

Fix #6463
parent 8069fd63
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,9 @@ 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment