Migrate a guard in notifications/util
This commit is contained in:
@@ -255,8 +255,8 @@ function getSubjectUri(
|
|||||||
return notif.uri
|
return notif.uri
|
||||||
} else if (type === 'post-like' || type === 'repost') {
|
} else if (type === 'post-like' || type === 'repost') {
|
||||||
if (
|
if (
|
||||||
AppBskyFeedRepost.isRecord(notif.record) ||
|
AppBskyFeedRepost.isValidRecord(notif.record) ||
|
||||||
AppBskyFeedLike.isRecord(notif.record)
|
AppBskyFeedLike.isValidRecord(notif.record)
|
||||||
) {
|
) {
|
||||||
return typeof notif.record.subject?.uri === 'string'
|
return typeof notif.record.subject?.uri === 'string'
|
||||||
? notif.record.subject?.uri
|
? notif.record.subject?.uri
|
||||||
|
|||||||
Reference in New Issue
Block a user