From 92989282ae73a1f0f9564c125f2f87a6e9bb154b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 22 Aug 2024 12:27:34 -0500 Subject: [PATCH] Fetch it (#4974) --- src/view/com/post-thread/PostThread.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 3757d76c6d..b3196f9bac 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, })