Truncate parents if no-unauth
This commit is contained in:
@@ -89,11 +89,13 @@ export function sortAndAnnotateThreadItems(
|
|||||||
const post = views.threadPostNoUnauthenticated(parent)
|
const post = views.threadPostNoUnauthenticated(parent)
|
||||||
post.ui = getThreadPostNoUnauthenticatedUI({
|
post.ui = getThreadPostNoUnauthenticatedUI({
|
||||||
depth: parent.depth,
|
depth: parent.depth,
|
||||||
prevItemDepth: thread[pi - 1]?.depth,
|
// ignore for now
|
||||||
|
// prevItemDepth: thread[pi - 1]?.depth,
|
||||||
nextItemDepth: thread[pi + 1]?.depth,
|
nextItemDepth: thread[pi + 1]?.depth,
|
||||||
})
|
})
|
||||||
threadItems.unshift(post)
|
threadItems.unshift(post)
|
||||||
// break parentTraversal
|
// for now, break parent traversal at first no-unauthed
|
||||||
|
break parentTraversal
|
||||||
} else if (AppBskyUnspeccedDefs.isThreadItemNotFound(parent.value)) {
|
} else if (AppBskyUnspeccedDefs.isThreadItemNotFound(parent.value)) {
|
||||||
threadItems.unshift(views.threadPostNotFound(parent))
|
threadItems.unshift(views.threadPostNotFound(parent))
|
||||||
break parentTraversal
|
break parentTraversal
|
||||||
|
|||||||
Reference in New Issue
Block a user