diff options
author | Eric Bailey <git@esb.lol> | 2023-11-27 14:41:53 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 12:41:53 -0800 |
commit | 5fd2d36273c2e603084bdd58af43023e9622fb46 (patch) | |
tree | e8910de0ee5e9cda76c06fb3ba10ddb49a0955b4 /src | |
parent | cd43adf698bbe01d9dd1cd873aa16589e480b88c (diff) | |
download | voidsky-5fd2d36273c2e603084bdd58af43023e9622fb46.tar.zst |
Filter out blocked posts from thread view (#2006)
Diffstat (limited to 'src')
-rw-r--r-- | src/state/queries/post-thread.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state/queries/post-thread.ts b/src/state/queries/post-thread.ts index 3c6989466..b4a474eab 100644 --- a/src/state/queries/post-thread.ts +++ b/src/state/queries/post-thread.ts @@ -151,9 +151,10 @@ function responseToThreadNodes( : undefined, replies: node.replies?.length && direction !== 'up' - ? node.replies.map(reply => - responseToThreadNodes(reply, depth + 1, 'down'), - ) + ? node.replies + .map(reply => responseToThreadNodes(reply, depth + 1, 'down')) + // do not show blocked posts in replies + .filter(node => node.type !== 'blocked') : undefined, viewer: node.viewer, ctx: { |