Skip to content

How to make comment only visible for the current login user? #2740

Answered by 12joan
wenyongqd asked this question in Q&A
Discussion options

You must be logged in to vote

Setting comment to false would probably work, although removing them entirely would be more idiomatic.

The 6tepFE6vsjravHEubkqa7 will be different for each comment, so you'll have to filter Object.keys by startsWith('comment') to determine which properties to remove.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@12joan
Comment options

Answer selected by wenyongqd
@wenyongqd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants