From: Eugen Rochko Date: Fri, 23 Nov 2018 20:58:01 +0000 (+0100) Subject: Revert "Sort self-replies to the top of the thread (#9296)" (#9335) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=87a43274f12bcdde3475b2c187cc203a42cb738d;p=mastodon.git Revert "Sort self-replies to the top of the thread (#9296)" (#9335) This reverts commit 074960bb0fa59664c0ae1a35ef80301f5033700d. Fix #9315 --- diff --git a/app/models/concerns/status_threading_concern.rb b/app/models/concerns/status_threading_concern.rb index 234cfd5d2..fa441469c 100644 --- a/app/models/concerns/status_threading_concern.rb +++ b/app/models/concerns/status_threading_concern.rb @@ -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)