From ecbc5563a71283990ed2d147359777a780ebc686 Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Thu, 13 Jul 2023 13:18:03 -0700 Subject: [PATCH] fix custom feed like notification --- src/lib/notifee.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/notifee.ts b/src/lib/notifee.ts index c4c4abf377..71da3bc52b 100644 --- a/src/lib/notifee.ts +++ b/src/lib/notifee.ts @@ -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 }