]> cat aescling's git repositories - mastodon.git/commitdiff
Revert "Sort self-replies to the top of the thread (#9296)" (#9335)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 23 Nov 2018 20:58:01 +0000 (21:58 +0100)
committerGitHub <noreply@github.com>
Fri, 23 Nov 2018 20:58:01 +0000 (21:58 +0100)
This reverts commit 074960bb0fa59664c0ae1a35ef80301f5033700d.

Fix #9315

app/models/concerns/status_threading_concern.rb

index 234cfd5d24f460e4e3984427f691c029909043c3..fa441469c11c80766bea1baf62313106e8ae2f01 100644 (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)