context-mod icon indicating copy to clipboard operation
context-mod copied to clipboard

Add removal/filtered reason to `itemIs`

Open FoxxMD opened this issue 1 year ago • 0 comments

Removal by Mods

Removal reason for moderators is covered by mod_note and mod_reason_title on the submission/comment

Filter reason (automod)

Getting automod filter reason requires access to modlog or is retrievable from mod notes under action.details for the first automoderator entry.

Neither approach lends itself to good api usage at this point...

Mod log usage is not implemented in CM yet and would require all existing bots to re-authenticate to ask for modlog oauth scope. However this would probably be a better approach long-term as we can cache mod log much easier than mod notes.

Mod notes is more direct and is already implemented but will require an additional api call to get the reason.

It would also depend on context...for instance getting filtered reason for a new activity just received from unmoderated means an api call either way since modlog is stale and we don't have mod notes for the user. Additionally, getting filtered reason for old activities would be easier done with mod notes as we can't easily determine how many pages of mod log would need to be fetched before we find the activity id.

FoxxMD avatar Sep 01 '22 14:09 FoxxMD