fix custom feed like notification

This commit is contained in:
Ansh Nanda
2023-07-13 13:18:03 -07:00
parent 9758cd2c51
commit ecbc5563a7
+4 -4
View File
@@ -52,7 +52,10 @@ export function displayNotificationFromModel(
)
let title: string
let body: string = ''
if (notification.isLike) {
if (notification.isCustomFeedLike) {
title = `${author} liked your custom feed`
body = `${new AtUri(notification.subjectUri).rkey}`
} else if (notification.isLike) {
title = `${author} liked your post`
body = notification.additionalPost?.thread?.postRecord?.text || ''
} else if (notification.isRepost) {
@@ -67,9 +70,6 @@ export function displayNotificationFromModel(
} else if (notification.isFollow) {
title = 'New follower!'
body = `${author} has followed you`
} else if (notification.isCustomFeedLike) {
title = `${author} liked your custom feed`
body = `${new AtUri(notification.subjectUri).rkey}`
} else {
return
}