From 31673b64580d0515f1ba74bbec60522c30d4c84c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 7 Jan 2025 10:38:55 -0600 Subject: [PATCH] Use dangerous util --- src/view/com/notifications/NotificationFeedItem.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx index 938f9975a7..658518bc89 100644 --- a/src/view/com/notifications/NotificationFeedItem.tsx +++ b/src/view/com/notifications/NotificationFeedItem.tsx @@ -272,7 +272,10 @@ let NotificationFeedItem = ({ if ( item.notification.author.viewer?.following && - AppBskyGraphFollow.isValidRecord(item.notification.record) + atp.dangerousIsType( + item.notification.record, + AppBskyGraphFollow.isRecord, + ) ) { let followingTimestamp try { @@ -724,7 +727,13 @@ function ExpandedAuthorsList({ function AdditionalPostText({post}: {post?: AppBskyFeedDefs.PostView}) { const pal = usePalette('default') - if (post && AppBskyFeedPost.isValidRecord(post?.record)) { + if ( + post && + atp.dangerousIsType( + post?.record, + AppBskyFeedPost.isRecord, + ) + ) { const text = post.record.text return (