Skip to content

Flagged Post Refactoring #116

@DanielChee

Description

@DanielChee

Description

Currently, Admin do not have any way of addressing flagged posts. We want to add a special report type for flagged posts called Language. When a user decides to submit their content for review after it has been caught my the profanity filter, you should create a report object of type Language associated with that post.

Admin Dashboard

Flagged Posts should not appear in the "Reported Content" tab. If any exist, ensure that the red indicator for Reported Content is not visible.

Flagged Posts should appear in the "Content Flagging" tab, and should result in a red indicator next to Content Flagging.

Report Objects

Report objects must be altered to include one extra reason: Language. This reason will be set by the profanity checker once a user decides to submit their post for review.

Additionally, we should still make sure that isFlagged is set to true for posts. This should make it easy to continue fetching the same posts for the Content Flagging tab in Admin Dashboard.

Change any schema validation code if necessary.

Acceptance Criteria

  • Reports with 'language' ReportReason should not appear in the Reported Content Tab
    • They should appear in the Content Flagging tab
  • When a user resolves a report, it should resolve all reports associated with that post/comment, and set isFlagged = false for that associated post/comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions