Authors can remove comments on their own blog posts and users can remove their own comments. Only soft-lock to not destroy the comment tree.
Just add isRemoved boolean for PostComment . Default to false. Using Server Actions for the action of removing the comments. Make sure that only authors and users of their own comments can remove comments.
Authors can remove comments on their own blog posts and users can remove their own comments. Only soft-lock to not destroy the comment tree.
Just add
isRemoved
boolean forPostComment
. Default to false. Using Server Actions for the action of removing the comments. Make sure that only authors and users of their own comments can remove comments.