diff options
Diffstat (limited to 'src/state')
-rw-r--r-- | src/state/queries/notifications/feed.ts | 2 | ||||
-rw-r--r-- | src/state/queries/post-thread.ts | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/state/queries/notifications/feed.ts b/src/state/queries/notifications/feed.ts index 4d4c850ca..d2c150c31 100644 --- a/src/state/queries/notifications/feed.ts +++ b/src/state/queries/notifications/feed.ts @@ -120,7 +120,7 @@ export function* findAllPostsInQueryData( if (item.subject?.uri === uri) { yield item.subject } - const quotedPost = getEmbeddedPost(item.subject.embed) + const quotedPost = getEmbeddedPost(item.subject?.embed) if (quotedPost?.uri === uri) { yield embedViewRecordToPostView(quotedPost) } diff --git a/src/state/queries/post-thread.ts b/src/state/queries/post-thread.ts index cedbbc9dd..6e9cb28dd 100644 --- a/src/state/queries/post-thread.ts +++ b/src/state/queries/post-thread.ts @@ -239,7 +239,8 @@ export function* findAllPostsInQueryData( if (item.uri === uri) { yield item } - const quotedPost = getEmbeddedPost(item.post.embed) + const quotedPost = + item.type === 'post' ? getEmbeddedPost(item.post.embed) : undefined if (quotedPost?.uri === uri) { yield embedViewRecordToPlaceholderThread(quotedPost) } |