about summary refs log tree commit diff
path: root/src/state/queries/notifications/util.ts
diff options
context:
space:
mode:
authorSnackpackWayne <49062420+snackpackwayne@users.noreply.github.com>2023-12-27 22:38:01 +0100
committerGitHub <noreply@github.com>2023-12-27 22:38:01 +0100
commit52cb777c9432354302b3285e141aa96632af34d5 (patch)
tree0b823b5816f040990af0ee2fc7815a2f1a063fca /src/state/queries/notifications/util.ts
parent538c67cc332a6b909f83dd382843667dcced0fe9 (diff)
parentf402f33a024ea59ea9bd2decfc0444e6836a934c (diff)
downloadvoidsky-52cb777c9432354302b3285e141aa96632af34d5.tar.zst
Merge branch 'main' into patch-1
Diffstat (limited to 'src/state/queries/notifications/util.ts')
-rw-r--r--src/state/queries/notifications/util.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state/queries/notifications/util.ts b/src/state/queries/notifications/util.ts
index 438879b7e..411a0f791 100644
--- a/src/state/queries/notifications/util.ts
+++ b/src/state/queries/notifications/util.ts
@@ -156,7 +156,7 @@ async function fetchSubjects(
 ): Promise<Map<string, AppBskyFeedDefs.PostView>> {
   const uris = new Set<string>()
   for (const notif of groupedNotifs) {
-    if (notif.subjectUri) {
+    if (notif.subjectUri && !notif.subjectUri.includes('feed.generator')) {
       uris.add(notif.subjectUri)
     }
   }
@@ -216,6 +216,8 @@ function getSubjectUri(
         ? notif.record.subject?.uri
         : undefined
     }
+  } else if (type === 'feedgen-like') {
+    return notif.reasonSubject
   }
 }