mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01: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);
|
nestedDescendants.push(status);
|
||||||
} else if (
|
} else if (
|
||||||
!status.inReplyToAccountId &&
|
!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
|
status.account.id === heroStatus.account.id
|
||||||
) {
|
) {
|
||||||
// If replying to hero's own statuses, it's part of the thread, level 1
|
// If replying to hero's own statuses, it's part of the thread, level 1
|
||||||
|
|
Loading…
Reference in a new issue