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

Make the the static HTML dynamic with the database #25

Closed
7 tasks
Breadkenty opened this issue Aug 15, 2020 · 0 comments
Closed
7 tasks

Make the the static HTML dynamic with the database #25

Breadkenty opened this issue Aug 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request Priority Needs to be worked right away

Comments

@Breadkenty
Copy link
Owner

Breadkenty commented Aug 15, 2020

After the backend and static HTML is set up, we can start plugging in data to make these changes dynamic.

  • Drive the Reports page from data

  • Drive the User page's combos from data

  • Drive the Reports on the User page from data

  • Drive the Infractions on the User page from data

  • Users should only be able to report once. Disable the button, if the report already exists

  • The report's useState object should be in this JSON format
    {
    userId: Id of the user being reported,
    reporterId: Id of the user reporting,
    comboId: Id of the combo that was reported (if reported on a comment, this will be null),
    commentId: Id of the comment that was reported (if reported on a combo, this will be null),
    body: "THIS COMBO WAS UNCALLED FOR!",
    }

  • The infraction useState object should be in this JSON format

a user getting banned

{
  userId: Id of the user being infracted,
  moderatorId: Id of the moderator infracting,
  banDuration: 172800,
  type: "inappropriate",
  body: "Inappropriate post for PK Blazing Butthole",
}

banDuration
2 Days = 172800s
1 Week = 604800s
2 weeks = 1209600s
1 month = 2419200s
Permanent = infinite

a user getting warned

{
  userId: Id of the user being infracted,
  moderatorId: Id of the moderator infracting,
  banDuration: null;
  type: "spam",
  body: "Spamming the same combos",
}

Looking to expand this list. thinking about removing other so mods will not be able to abuse the point system.
spam = 1 point
inappropriate = 1 point
harassment = 2 points
other = custom? points

@Breadkenty Breadkenty added enhancement New feature or request Priority Needs to be worked right away labels Aug 15, 2020
@Breadkenty Breadkenty self-assigned this Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority Needs to be worked right away
Projects
None yet
Development

No branches or pull requests

2 participants