Migrate a guard in notifications/util
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user