reddit-moderator-toolbox
reddit-moderator-toolbox copied to clipboard
Expose `mod_note` on old reddit as well as making it more visible on redesign.
Redesign removal reasons have the option to leave a mod note with the removal reason

This note is then exposed through the thing json data as the mod_note property.
I did some little research today and while it isn't documented there is an endpoint for it under /api/v1/modactions/removal_reasons which takes the following payload
{
"item_ids": ["t3_etc"],
"mod_note": "this is text",
"reason_id": null,
}
From my testing it only seems to work on removed things but can be applied to both comments and posts.
I'd like to expose this piece of information with toolbox in a variety of ways:
- Show it under comments and posts that have been removed on old reddit.
- Show it more obviously on redesign (currently it is hidden under a hover for the text "removal reason")
- Add it as an option to our own removal reasons
Before we can do that our current request model needs a slight adjustment as the endpoint expects a JSON body and not formdata.
Came across this today and some things came to mind:
- I can't remember if it was just for posts or also for comments, need to verify that.
- Should adding a note only be possible through removal reasons or also have a separate interface?
- I am thinking that we should look it up for each removed things we encounter and then cache it for a certain period.