toolbox-team / reddit-moderator-toolbox

Moderator toolbox for reddit extension development.
https://www.reddit.com/r/toolbox
Apache License 2.0
115 stars 38 forks source link

Pull reddit native removal reasons for usage in toolbox removal reasons. #97

Open creesch opened 5 years ago

creesch commented 5 years ago

Native removal reasons do have an undocumented api endpoint that seems to work fairly well.

https://oauth.reddit.com/api/v1/SUBREDDIT/removal_reasons.json?raw_json=1

Which returns

{"data": {"1334mkua4pp2v": {"message": "This is the message", "id": "1334mkua4pp2v", "title": "This is the title"}, "1045uuemsidf9": {"message": "Your thing has been removed because it sucks. ", "id": "1045uuemsidf9", "title": "Your thing sucks"}}, "order": ["1045uuemsidf9", "1334mkua4pp2v"]}

Basically an object with the reasons and an array with the object keys in order.

Todo for toolbox:

creesch commented 5 years ago

Okay, so I want to start work on this but can't decide if this should just append to the list of toolbox reasons or if we maybe should add a second tab?

I am personally inclined to do a tab so people that people don't get annoyed by possible double removal reasons.

eritbh commented 5 years ago

Using another tab for it seems reasonable to me.

creesch commented 4 years ago

It would be nice to have #186 done before tackling this one.