mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 08:45:32 +03:00
Fix nested threads bug
This commit is contained in:
parent
49ce9ba48d
commit
25b98d477f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue