From ba78d225b1fe90389bdc6e44bbeab670f7aaff07 Mon Sep 17 00:00:00 2001 From: Daniel Holmgren Date: Fri, 15 Sep 2023 11:23:33 -0500 Subject: [PATCH] Temporarily disable filtering `invalidReplyRoot`s (#1609) temporarily disable invalidReplyRoot check --- packages/bsky/src/api/app/bsky/feed/getPostThread.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/bsky/src/api/app/bsky/feed/getPostThread.ts b/packages/bsky/src/api/app/bsky/feed/getPostThread.ts index 9292f0d5d99..0c26285b384 100644 --- a/packages/bsky/src/api/app/bsky/feed/getPostThread.ts +++ b/packages/bsky/src/api/app/bsky/feed/getPostThread.ts @@ -140,7 +140,9 @@ const composeThread = ( // b. may not appear anywhere else in the thread. const isAnchorPost = state.threadData.post.uri === threadData.post.postUri const info = posts[threadData.post.postUri] - const badReply = !!info?.invalidReplyRoot || !!info?.violatesThreadGate + // @TODO re-enable invalidReplyRoot check + // const badReply = !!info?.invalidReplyRoot || !!info?.violatesThreadGate + const badReply = !!info?.violatesThreadGate const omitBadReply = !isAnchorPost && badReply if (!post || blocks[post.uri]?.reply || omitBadReply) { @@ -312,7 +314,9 @@ const checkViewerCanReply = async ( threadgate: ThreadgateRecord | null, ) => { if (!viewer) return false - if (anchor?.invalidReplyRoot || anchor?.violatesThreadGate) return false + // @TODO re-enable invalidReplyRoot check + // if (anchor?.invalidReplyRoot || anchor?.violatesThreadGate) return false + if (anchor?.violatesThreadGate) return false const viewerViolatesThreadGate = await violatesThreadGate( db, viewer,