From 87a43274f12bcdde3475b2c187cc203a42cb738d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 23 Nov 2018 21:58:01 +0100 Subject: Revert "Sort self-replies to the top of the thread (#9296)" (#9335) This reverts commit 074960bb0fa59664c0ae1a35ef80301f5033700d. Fix #9315 --- app/models/concerns/status_threading_concern.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'app/models') 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) -- cgit