Root post always avail here
This commit is contained in:
@@ -84,7 +84,7 @@ export function FeedItem({
|
|||||||
rootPost,
|
rootPost,
|
||||||
}: FeedItemProps & {
|
}: FeedItemProps & {
|
||||||
post: AppBskyFeedDefs.PostView
|
post: AppBskyFeedDefs.PostView
|
||||||
rootPost?: AppBskyFeedDefs.PostView
|
rootPost: AppBskyFeedDefs.PostView
|
||||||
}): React.ReactNode {
|
}): React.ReactNode {
|
||||||
const postShadowed = usePostShadow(post)
|
const postShadowed = usePostShadow(post)
|
||||||
const richText = useMemo(
|
const richText = useMemo(
|
||||||
@@ -141,7 +141,7 @@ let FeedItemInner = ({
|
|||||||
}: FeedItemProps & {
|
}: FeedItemProps & {
|
||||||
richText: RichTextAPI
|
richText: RichTextAPI
|
||||||
post: Shadow<AppBskyFeedDefs.PostView>
|
post: Shadow<AppBskyFeedDefs.PostView>
|
||||||
rootPost?: AppBskyFeedDefs.PostView
|
rootPost: AppBskyFeedDefs.PostView
|
||||||
}): React.ReactNode => {
|
}): React.ReactNode => {
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
const {openComposer} = useComposerControls()
|
const {openComposer} = useComposerControls()
|
||||||
@@ -225,7 +225,7 @@ let FeedItemInner = ({
|
|||||||
reason.by.did === currentAccount?.did
|
reason.by.did === currentAccount?.did
|
||||||
|
|
||||||
const threadgateRecord = AppBskyFeedThreadgate.isRecord(
|
const threadgateRecord = AppBskyFeedThreadgate.isRecord(
|
||||||
rootPost?.threadgate?.record,
|
rootPost.threadgate?.record,
|
||||||
)
|
)
|
||||||
? rootPost.threadgate.record
|
? rootPost.threadgate.record
|
||||||
: undefined
|
: undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user