mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
parent
8069fd636b
commit
074960bb0f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue