about summary refs log tree commit diff
path: root/src/view/screens/DebugMod.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-23 11:35:49 -0700
committerGitHub <noreply@github.com>2024-05-23 19:35:49 +0100
commit70f190d44f314fa91b860c29e2f04b4955c1b8b2 (patch)
tree5579af5bbd93e17ca2a3fd38f2db2a448e2856ab /src/view/screens/DebugMod.tsx
parent6d647551cd2fcf9d66c3795df8f6764bf60f6df1 (diff)
downloadvoidsky-70f190d44f314fa91b860c29e2f04b4955c1b8b2.tar.zst
Remove `getProfile` calls when loading feed (#3881)
* remove unnecessary `getProfile()` calls from feed load

add comments

ensure only if first

simplify

nit

handle cases where the parent is removed

add a comment

remove unnecessary `getProfile()` calls from feed load

limit only to the first post in the returned items

move the logic out of the render and into the query

add the grandparent properly

update `FeedItem`

bump package

update `FeedItem`

update `post-feed` query

update `FeedSlice`

* nit

* simplify logic

* always pass `parentAuthor`

* oops!

* update `DebugMod`
Diffstat (limited to 'src/view/screens/DebugMod.tsx')
-rw-r--r--src/view/screens/DebugMod.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/screens/DebugMod.tsx b/src/view/screens/DebugMod.tsx
index 86c632194..77b07b8c9 100644
--- a/src/view/screens/DebugMod.tsx
+++ b/src/view/screens/DebugMod.tsx
@@ -803,6 +803,8 @@ function MockPostFeedItem({
       post={post}
       record={post.record as AppBskyFeedPost.Record}
       moderation={moderation}
+      parentAuthor={undefined}
+      showReplyTo={false}
       reason={undefined}
       feedContext={''}
     />