Filter out blocked posts from thread view (#2006)
parent
cd43adf698
commit
5fd2d36273
|
@ -151,9 +151,10 @@ function responseToThreadNodes(
|
||||||
: undefined,
|
: undefined,
|
||||||
replies:
|
replies:
|
||||||
node.replies?.length && direction !== 'up'
|
node.replies?.length && direction !== 'up'
|
||||||
? node.replies.map(reply =>
|
? node.replies
|
||||||
responseToThreadNodes(reply, depth + 1, 'down'),
|
.map(reply => responseToThreadNodes(reply, depth + 1, 'down'))
|
||||||
)
|
// do not show blocked posts in replies
|
||||||
|
.filter(node => node.type !== 'blocked')
|
||||||
: undefined,
|
: undefined,
|
||||||
viewer: node.viewer,
|
viewer: node.viewer,
|
||||||
ctx: {
|
ctx: {
|
||||||
|
|
Loading…
Reference in New Issue