Skip to content

Moderation crate overhaul - #34

Merged
haroldadmin merged 5 commits into
mainfrom
kshitij/moderation-overhaul
Nov 6, 2026
Merged

haroldadmin merged 5 commits into
mainfrom
kshitij/moderation-overhaul

Conversation

@haroldadmin

Copy link
Copy Markdown
Owner

Cleans up the moderation crate's API.

  • Separate the concepts of labels and actions, even though they appear similar on the surface
  • Introduce the concept of moderation "subjects" to supply typed information to the moderation crate
  • Use generated types from Typesafe's OpenAPI spec, instead of hand written structs

It does away with the nonsense abstractions and APIs around fast path checks, and untyped JSON values being passed around.

@haroldadmin
haroldadmin merged commit 1308357 into main Nov 6, 2026
4 checks passed
@haroldadmin
haroldadmin deleted the kshitij/moderation-overhaul branch November 6, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant