From 28fa5e4919ccf24073ccc92d88efb7e4b73b0b2b Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sun, 10 Dec 2023 12:01:34 -0800 Subject: Add "Who can reply" controls [WIP] (#1954) * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer --- src/view/com/post-thread/PostThread.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/view/com/post-thread/PostThread.tsx') diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index cf43d2055..633968c87 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -468,7 +468,7 @@ function* flattenThreadSkeleton( yield PARENT_SPINNER } yield node - if (node.ctx.isHighlightedPost) { + if (node.ctx.isHighlightedPost && !node.post.viewer?.replyDisabled) { yield REPLY_PROMPT } if (node.replies?.length) { -- cgit 1.4.1