Skip to content

feat: add automated content moderation module (WIP) - #434

Merged
Mkalbani merged 1 commit into
MindFlowInteractive:mainfrom
benedict102:feat/automated-content-moderation
Sep 27, 2026
Merged

Mkalbani merged 1 commit into
MindFlowInteractive:mainfrom
benedict102:feat/automated-content-moderation

Conversation

@benedict102

Copy link
Copy Markdown
Contributor
  • Add moderation enums: ContentType, ModerationStatus, ViolationCategory, Severity, ActionType, AppealStatus, QueuePriority, AuditAction
  • Add TypeORM entities: ModerationFlag, ModerationAppeal, ModerationAction, ModerationAudit, ModerationQueueItem
  • Add DTOs: FlagContentDto, ReviewFlagDto, SubmitAppealDto, ResolveAppealDto, ModerationFilterDto, AnalyzeContentDto
  • Add TextFilterService: profanity/pattern matching with sanitization
  • Add MLClassificationService: toxicity scoring and category detection
  • Add ModerationAuditService: full audit trail logging

What does this PR do?

Why?

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing behavior to change)
  • Refactor (no behavior change)
  • Docs / CI / tooling

How was it tested?

  • Unit tests added/updated
  • E2E test added/updated
  • Manual verification steps below

Checklist

  • npm run lint passes
  • npm run format:check passes (run npm run format if not)
  • npm run typecheck passes
  • npm test passes
  • I added/updated tests for the change
  • I updated relevant docs (README, JSDoc, comments)
  • I added a changeset / migration if schema changed
  • I read CONTRIBUTING.md

Screenshots / Logs

Risk & rollout

closes #422

- Add moderation enums: ContentType, ModerationStatus, ViolationCategory,
  Severity, ActionType, AppealStatus, QueuePriority, AuditAction
- Add TypeORM entities: ModerationFlag, ModerationAppeal, ModerationAction,
  ModerationAudit, ModerationQueueItem
- Add DTOs: FlagContentDto, ReviewFlagDto, SubmitAppealDto, ResolveAppealDto,
  ModerationFilterDto, AnalyzeContentDto
- Add TextFilterService: profanity/pattern matching with sanitization
- Add MLClassificationService: toxicity scoring and category detection
- Add ModerationAuditService: full audit trail logging
@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@benedict102 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mkalbani
Mkalbani merged commit 70fb727 into MindFlowInteractive:main Sep 27, 2026
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.

Content Moderation and Automation

2 participants