diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index cdd9fd41ea..bf256a4924 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -28,7 +28,6 @@ import {atoms as a} from '#/alf' import {ProfileHoverCard} from '#/components/ProfileHoverCard' import {RichText} from '#/components/RichText' import {SubtleWebHover} from '#/components/SubtleWebHover' -import * as atp from '#/types/atproto' import {ContentHider} from '../../../components/moderation/ContentHider' import {LabelsOnMyPost} from '../../../components/moderation/LabelsOnMe' import {PostAlerts} from '../../../components/moderation/PostAlerts' @@ -54,12 +53,7 @@ export function Post({ const moderationOpts = useModerationOpts() const record = useMemo( () => - atp.dangerousIsType( - post.record, - AppBskyFeedPost.isRecord, - ) - ? post.record - : undefined, + AppBskyFeedPost.isValidRecord(post.record) ? post.record : undefined, [post], ) const postShadowed = usePostShadow(post)