Skip to content

feat: implement content moderation and flagging system#1

Open
pugsley76 wants to merge 2 commits into
mainfrom
feature/resubmit-milestones
Open

feat: implement content moderation and flagging system#1
pugsley76 wants to merge 2 commits into
mainfrom
feature/resubmit-milestones

Conversation

@pugsley76

Copy link
Copy Markdown
Owner

Closes bakeronchain#763

Overview

Implements a complete content moderation system allowing scholars to report inappropriate comments and enabling admins to review and take action on flagged content.

Changes

  • Flag Button: Added flag button on comments with modal for entering report reason
  • Database: New flagged_content table with reporter tracking, flag count, and admin action history
  • Admin Queue: /api/admin/moderation endpoint showing all flagged content sorted by priority
  • Moderation Actions: Admins can delete content, dismiss flags, or warn users with audit logging
  • Auto-Hide: Content automatically hidden from view when reaching 3 pending flags
  • Notifications: Admin email alerts on new flags with direct link to moderation dashboard
  • Feed Filtering: Hidden flagged comments excluded from public proposal comment feeds

Technical Details

  • 10 files added/modified
  • Migration 009 for schema changes
  • In-memory fallback store for testing
  • Full audit trail for all moderation actions
  • Proper authorization checks for admin endpoints

GitHub Copilot added 2 commits April 24, 2026 00:59
- Add Flag button on comments with reason input
- Create flagged_content table with reporter tracking and audit log
- Admin moderation queue at /api/admin/moderation
- Admin actions: delete content, dismiss flag, warn user
- Auto-hide content with 3+ pending flags
- Email admin on new flag with review link
- Filter hidden comments from public view
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.

feat: add admin content moderation queue (flag inappropriate comments)

1 participant