Fixes
This commit is contained in:
@@ -94,11 +94,18 @@ export class FeedViewPostsSlice {
|
|||||||
}
|
}
|
||||||
const root = reply.root
|
const root = reply.root
|
||||||
const rootIsView =
|
const rootIsView =
|
||||||
AppBskyFeedDefs.isPostView(root) || AppBskyFeedDefs.isBlockedPost(root)
|
AppBskyFeedDefs.isPostView(root) ||
|
||||||
// if parent is also the root, we have data!
|
AppBskyFeedDefs.isBlockedPost(root) ||
|
||||||
|
AppBskyFeedDefs.isNotFoundPost(root)
|
||||||
|
/*
|
||||||
|
* If the parent is also the root, we just so happen to have the data we
|
||||||
|
* need to compute if the parent's parent (grandparent) is blocked. This
|
||||||
|
* doesn't always happen, of course, but we can take advantage of it when
|
||||||
|
* it does.
|
||||||
|
*/
|
||||||
const grandparent =
|
const grandparent =
|
||||||
rootIsView && parent?.record?.reply?.parent?.uri === root?.uri
|
rootIsView && parent.record.reply?.parent.uri === root.uri
|
||||||
? reply?.root
|
? root
|
||||||
: undefined
|
: undefined
|
||||||
const grandparentAuthor = reply.grandparentAuthor
|
const grandparentAuthor = reply.grandparentAuthor
|
||||||
const isGrandparentBlocked = Boolean(
|
const isGrandparentBlocked = Boolean(
|
||||||
|
|||||||
Reference in New Issue
Block a user