Fix nested threads bug

pull/904/head
Lim Chee Aun 2024-10-25 23:04:18 +08:00
rodzic 49ce9ba48d
commit 25b98d477f
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -360,7 +360,11 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
nestedDescendants.push(status);
} else if (
!status.inReplyToAccountId &&
nestedDescendants.find((s) => s.id === status.inReplyToId) &&
nestedDescendants.find(
(s) =>
s.id === status.inReplyToId &&
s.account.id === heroStatus.account.id,
) &&
status.account.id === heroStatus.account.id
) {
// If replying to hero's own statuses, it's part of the thread, level 1