diff options
author | Eric Bailey <git@esb.lol> | 2024-08-22 12:27:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 10:27:34 -0700 |
commit | 92989282ae73a1f0f9564c125f2f87a6e9bb154b (patch) | |
tree | 1bb32f9c529f9d65515cadac3d40f474a6a535fe /src/view/com/post-thread/PostThread.tsx | |
parent | 9f1c41136079c458cf450315760e439266986076 (diff) | |
download | voidsky-92989282ae73a1f0f9564c125f2f87a6e9bb154b.tar.zst |
Fetch it (#4974)
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 3757d76c6..b3196f9ba 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -134,11 +134,9 @@ export function PostThread({uri}: {uri: string | undefined}) { | undefined const {data: threadgateRecord} = useThreadgateRecordQuery({ /** - * If the user is the OP and the root post has a threadgate, we should load - * the threadgate record. Otherwise, fallback to initialData, which is taken - * from the response from `getPostThread`. + * If the user is the OP and we have a root post, fetch the threadgate. */ - enabled: Boolean(isOP && rootPostUri && initialThreadgateRecord), + enabled: Boolean(isOP && rootPostUri), postUri: rootPostUri, initialData: initialThreadgateRecord, }) |