Migrate a guard in notifications/util

This commit is contained in:
Eric Bailey
2025-01-03 09:48:22 -06:00
parent 75fd73bda7
commit dace2a26f1
+2 -2
View File
@@ -255,8 +255,8 @@ function getSubjectUri(
return notif.uri
} else if (type === 'post-like' || type === 'repost') {
if (
AppBskyFeedRepost.isRecord(notif.record) ||
AppBskyFeedLike.isRecord(notif.record)
AppBskyFeedRepost.isValidRecord(notif.record) ||
AppBskyFeedLike.isValidRecord(notif.record)
) {
return typeof notif.record.subject?.uri === 'string'
? notif.record.subject?.uri