Skip to content

Content Flagging: User Report Flow #12

Description

@ozziest

Allow users to report posts or accounts that they believe violate community standards.

Background

Even a small platform needs a mechanism for the community to flag harmful content. This issue covers the user-facing report flow; the moderation side is in #11.

What can be reported

  • Individual posts
  • User accounts

Report reasons

  • Spam or advertising
  • Harassment or bullying
  • Hate speech or discrimination
  • Deliberate misinformation
  • Illegal content
  • Other (requires a short note from the reporter)

Behaviour

  1. Each post has a menu option to report it. Each profile page has a "Report account" button.
  2. Clicking report opens a form with the reason options listed above and an optional note field (required when "Other" is selected).
  3. On submission, a success message confirms the report was received.
  4. If the same user reports the same target more than once within 24 hours, the second report is silently ignored.
  5. Users must be signed in to file a report; guests are redirected to login.

Routes

Method Path Description
GET /report/post/:id Show report form for a post
GET /report/user/:username Show report form for an account
POST /report Submit a report

Acceptance Criteria

  • Report form is accessible from both posts and user profiles.
  • All reason options are available; "Other" requires a note.
  • Submitting the form creates a report and shows a confirmation message.
  • Duplicate reports within 24 hours are silently ignored.
  • Unauthenticated users are redirected to login.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions