Fix highlighted post calc

This commit is contained in:
Eric Bailey
2025-05-23 09:33:35 -05:00
parent 2183de7452
commit 9e9ab55027
3 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ export function threadPost({
moderation: moderatePost(value.post, moderationOpts),
ui: {
isAnchor: depth === 0,
showParentReplyLine: !!oneUp && oneUp.depth < depth,
showChildReplyLine: !!oneDown && oneDown.depth > depth,
showParentReplyLine: !!oneUp && oneUp.depth !== 0 && oneUp.depth < depth,
showChildReplyLine: !!oneDown && depth !== 0 && oneDown.depth > depth,
},
}
}