diff --git a/src/state/queries/notifications/util.ts b/src/state/queries/notifications/util.ts index 0ffa7302dc..339a341d0f 100644 --- a/src/state/queries/notifications/util.ts +++ b/src/state/queries/notifications/util.ts @@ -206,12 +206,9 @@ async function fetchSubjects( ), ) const postsMap = new Map() - const packsMap = new Map() + const packsMap = new Map() for (const post of postsChunks.flat()) { - if ( - AppBskyFeedPost.isRecord(post.record) && - AppBskyFeedPost.validateRecord(post.record).success - ) { + if (AppBskyFeedPost.isRecord(post.record)) { postsMap.set(post.uri, post) } } @@ -256,11 +253,11 @@ function getSubjectUri( return notif.uri } else if (type === 'post-like' || type === 'repost') { if ( - atp.fastIsType( + atp.dangerousIsType( notif.record, AppBskyFeedRepost.isRecord, ) || - atp.fastIsType( + atp.dangerousIsType( notif.record, AppBskyFeedLike.isRecord, )