Added the ability to nuke all comments of a post
Added the ability to remove & lock all comments of a post by introducing the handleNukePost function.
handleNukePost allows a moderator to lock or remove all comments in a post. It fetches a post using the provided post ID, checks if the current user has the necessary mod permissions, and then proceeds to lock or remove all comments in the post based on the provided properties. If the skipDistinguished property is true, distinguished comments are skipped. The function logs any failed attempts to lock or remove comments and returns a success message along with the number of comments handled.
Also added a separate form - nukePostForm in main.ts for this purpose.
Thanks for adding this! We're setting up some plumbing to be able to accept this PR and publish it into the official app automatically. We'll give an update / merge it in as soon as that's fixed.
That's cool, thanks for letting me know!