Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 074960bb rédigé par Eugen Rochko's avatar Eugen Rochko Validation de GitHub
Parcourir les fichiers

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

Fix #6463
parent 8069fd63
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -86,6 +86,9 @@ module StatusThreadingConcern ...@@ -86,6 +86,9 @@ module StatusThreadingConcern
# Order ancestors/descendants by tree path # Order ancestors/descendants by tree path
statuses.sort_by! { |status| ids.index(status.id) } 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 end
def relations_map_for_account(account, account_ids, domains) def relations_map_for_account(account, account_ids, domains)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter