Commit graph

614 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
5c6ac1d4b4 Loosen admin requirements for changing usernotes. 2022-09-08 05:08:14 -05:00
Ben Rog-Wilhelm
20fa9ce79f Move a bunch of moderation tools to admin level 2 2022-09-06 18:51:24 -05:00
TLSM
7a6f95a3b1 Fix #241: admin action rate limits too low.
Explicitly exempts admin action routes from rate limiting because
the limits were being hit during normal user behavior.

While verbose, alternatives like grouping admin routes into e.g. a
Flask blueprint to modify their behavior as a collective would have
been a larger refactor than seemed wise at the moment.

Also, some routes that were limited at 1/second were originally set
as such as a makeshift debounce for people double-clicking buttons.
This was discussed and deemed an acceptable risk compared to making
the mod queue more frustrating to go through.
2022-09-06 12:35:22 -05:00
TLSM
dbaf0a1bfd Remove unused polls code to reduce query volume.
Due to use of Submission.{choices, options, bet_options} in realbody,
generating submission_listings resulted in extremely high volume of
SELECT queries.

In local testing with 6 posts, one of which had a poll with 2 options,
the removal of these calls reduced quantity of queries on the homepage
from 84 to 22.

Given that it was previously decided to remove the polls feature after
a regression while adding comment filtering, the remaining dead code
paths for polls were also removed.
2022-09-05 23:44:18 -05:00
TLSM
129d644a3f Add active user counter logic; add to admin tools.
Ports in lightly modified logic from the upstream which tracks active
sessions to provide counters and listings to understand site traffic
in the admin panel.
2022-09-05 00:44:13 -05:00
Julian Rota
2d03dd1984 Remove remaining gumroad stuff 2022-08-22 09:54:35 -05:00
Julian Rota
81610b803a Support settings for integers and allow setting filter settings in UI 2022-07-09 06:33:41 -05:00
Julian Rota
bd5fd8fb21 Switch over comment reporting to use the new system 2022-07-09 06:33:41 -05:00
Julian Rota
a0488f2b23 UI to allow update of comment filter status 2022-07-09 06:33:41 -05:00
Julian Rota
4b0c4fcc73 Add page for filtered comments 2022-07-09 06:33:41 -05:00
Julian Rota
b6f068645d Retrieve reported post list by status instead of by reports 2022-05-23 22:58:06 -04:00
Julian Rota
0a67c0138f Support setting ignored status 2022-05-23 22:57:23 -04:00
Julian Rota
0002f66f36 Merge branch 'frost' into new-user-filtering 2022-05-22 17:01:45 -04:00
FatherInire
fcba426009
Remove some gimmicky r/drama features.
Co-authored-by: Inire <>
2022-05-21 21:43:00 -05:00
Julian Rota
6d68993a8d Merge branch 'frost' into new-user-filtering 2022-05-16 23:55:50 -04:00
Julian Rota
f231726b3a Initial filtering of posts/submissions 2022-05-16 23:33:12 -04:00
Michael House
19903cccb5
Adding usernotes. 2022-05-16 11:53:24 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
iro84657
193ff08a3d Remove special cases based on request.host 2022-05-09 01:40:09 -04:00
iro84657
71743a3bfc Remove special cases based on SITE_NAME 2022-05-09 01:40:09 -04:00
Aevann1
709a7fc4b5 sfd 2022-05-01 23:44:38 +02:00
Aevann1
4393a14ccc fds 2022-04-29 16:41:35 +02:00
Aevann1
72cb84d1cd Revert "vxc"
This reverts commit c21f04d664.
2022-04-25 23:59:12 +02:00
Aevann1
c21f04d664 vxc 2022-04-25 18:38:06 +02:00
Aevann1
b88f13699e fds 2022-04-22 17:08:42 +02:00
Aevann1
bd3e030a29 fsd 2022-04-22 16:51:40 +02:00
Aevann1
ed63eb08be fds 2022-04-20 19:34:27 +02:00
Aevann1
ac43373439 gfd 2022-04-19 21:13:36 +02:00
Aevann1
5c22289b1e sfd 2022-04-19 19:50:13 +02:00
Aevann1
eccfb31469 fds 2022-04-17 22:20:40 +02:00
Aevann1
bfae9f368b fsd 2022-04-17 11:23:42 +02:00
Aevann1
2c96266315 fds 2022-04-15 17:35:11 +02:00
Aevann1
265a13a601 site settings 2022-04-12 21:05:50 +02:00
Aevann1
442355bde7 fsd 2022-04-12 19:32:53 +02:00
Aevann1
ccacd78fa8 fart mode 2022-04-12 19:29:52 +02:00
Aevann1
6082c2dad5 gfd 2022-04-12 18:52:18 +02:00
Aevann1
d95c817b75 fds 2022-04-08 04:56:10 +02:00
Aevann1
3ca087239d fsd 2022-04-04 03:41:20 +02:00
Aevann1
5d6e14b9b3 fsd 2022-04-02 19:11:35 +02:00
Aevann1
36eda0edf8 fsd 2022-04-02 18:54:27 +02:00
Aevann1
c0d8490df3 fds 2022-03-31 17:00:57 +02:00
Aevann1
53327a2e49 fsd 2022-03-22 17:45:52 +02:00
Aevann1
668af20cfa fds 2022-03-21 23:36:57 +02:00
Aevann1
11a6ce1a90 fsd 2022-03-21 23:35:38 +02:00
Aevann1
0ff1a663e8 bu 2022-03-20 00:16:13 +02:00
Aevann1
79e0fadfac mart 2022-03-19 23:20:27 +02:00
Aevann1
b3cfda5274 vc 2022-03-19 17:33:02 +02:00
Aevann1
ea5b5403a4 gdf 2022-03-19 17:11:03 +02:00
Aevann1
37adeb235f fsd 2022-03-19 16:41:03 +02:00