about summary refs log tree commit diff
path: root/src/state/queries/post-feed.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-08-19 11:20:42 -0500
committerGitHub <noreply@github.com>2024-08-19 11:20:42 -0500
commit3976d6738b30e36c563ae3271768334edede0d5d (patch)
tree1fbee0fb7a385b1730d792beca5f88e708945fe8 /src/state/queries/post-feed.ts
parent2939ee7df751eef4c3e673e321c6b900847d43d9 (diff)
downloadvoidsky-3976d6738b30e36c563ae3271768334edede0d5d.tar.zst
Fix orphaned feed slices, handle blocks (#4944)
* Fix orphaned feed slices, handle blocks

* Revert to filerting out orphan threads

* Support NotFoundPost views too

* Just kidding, use ReplyRef.root as source of grandparent data

* Fixes
Diffstat (limited to 'src/state/queries/post-feed.ts')
-rw-r--r--src/state/queries/post-feed.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts
index 724043e58..ee3e2c14d 100644
--- a/src/state/queries/post-feed.ts
+++ b/src/state/queries/post-feed.ts
@@ -80,6 +80,7 @@ export interface FeedPostSliceItem {
   moderation: ModerationDecision
   parentAuthor?: AppBskyActorDefs.ProfileViewBasic
   isParentBlocked?: boolean
+  isParentNotFound?: boolean
 }
 
 export interface FeedPostSlice {
@@ -326,6 +327,7 @@ export function usePostFeedQuery(
                         moderation: moderations[i],
                         parentAuthor: item.parentAuthor,
                         isParentBlocked: item.isParentBlocked,
+                        isParentNotFound: item.isParentNotFound,
                       }
                       return feedPostSliceItem
                     }),