Commit Graph

9 Commits

Author SHA1 Message Date
470a10d2a7 Add ability to create bans from reports
This is done in the admin view and opens a new iframed window. The ban
form is pretty barebones and doesn't have full functionality yet, but
that is coming.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-23 16:03:09 -07:00
28ccd7d73b Add IP bans
Users can be banned by IP address now, either by singular IP or in an IP
range. If they are banned and attempt to post, they will be met with a
"you are banned until X date" screen.

There are a few loose threads with this, and IP bans may be obsolete if
I decide to go the accounts-required-for-posting route. But I think this
is a good start for 4chan style posting.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-20 15:26:35 -07:00
6bda7f4f2d Big upheaval of how the reports system works
* There are now Reports and ReportRecords.
* Reports coordinate to what moderators see, and ReportRecords
  coordinate with the reports that are created by individual users.
* Reports keep track of the report reason and the creating user.
* ReportRecords keep track of the total weight and whether this report
  requires urgent attention or not.
* ReportRecord keeps track of its own weight and urgency because then we
  can sort by weight and urgency in the admin view.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-19 22:03:01 -07:00
5742dc4dc2 Update list_display names for ReportAdmin
This affects the CSS class names.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-19 20:30:48 -07:00
5a2d6efbe1 Add list_display customization to the reports view
This allows us to access the reported post's body, subject, etc for
in-line display. It ain't perfect, but it definitely is better than
nothing.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-19 18:12:02 -07:00
d148b653cd Update report admin to have post, reason, and IP as readonly
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-15 20:50:21 -07:00
2940affae3 Add reports, report reasons, bans, and ban templates
Reports are created by users.

Bans are created by moderators, in response to reports.

Report reasons and ban templates are created by admins, which give a
template for reports sent and bans issued.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-07 17:39:40 -07:00
1aa263fd7d Add board and post view to admin
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-07 17:39:40 -07:00
126db039e2 Initial commit
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-03 18:02:04 -07:00