Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Allow for post + comment flagging #47

Open
3 tasks
SethCram opened this issue Apr 6, 2023 · 0 comments
Open
3 tasks

[ENHANCEMENT] Allow for post + comment flagging #47

SethCram opened this issue Apr 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@SethCram
Copy link
Owner

SethCram commented Apr 6, 2023

Is your feature request related to a problem? Please describe.

  • yes, users can't report content that doesn't follow site guidelines

Describe the solution you'd like

  • Allow for post + comment flagging

Additional context

Development

  • add int flagged field to comment + post models

    • should be init'd to 0 and never negative
    • should record how many times instance's been flagged
  • seems unnecessary since just the length of flags arr

  • add array of flags to each post + comment model

    • each element can hold a username telling who's flagged the model
  • add flag icon btn on both comment + post frontend

    • similar to vote icons
    • will be filled if user has flagged object before
      • their username will be held in the flags arr
  • add api method to cast or rescind a flag

    • adds or removes an element from the flags arr
@SethCram SethCram added the enhancement New feature or request label Apr 6, 2023
@SethCram SethCram self-assigned this Apr 6, 2023
@SethCram SethCram moved this to 🔖 Ready in Book Club Development Board Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant