Aevann1
e83be235ba
delete frontpage cache when moving posts
2022-11-14 07:49:23 +02:00
Snakes
8fee66c894
Reorder decorators to support f63237a9a2
.
...
Ultimately necessary because otherwise all bots share rate limits
with each other. The somewhat haphazard ordering of decorators bothers
me, but it's functionally required.
Approaches using request context (like reading the Authorization
header in ratelimit_user) likely produce bugs all their own.
2022-11-13 05:18:52 -05:00
justcool393
aa272729f1
default ratelimit and default ratelimit slower
2022-11-13 00:43:47 -06:00
justcool393
80d7d5281d
ratelimit_user() wrapper
2022-11-13 00:07:15 -06:00
Aevann1
e28d26db2d
notify of flairs
2022-11-11 19:04:31 +02:00
Aevann1
ecf68caf20
(Mod) -> (/h/sub Mod)
2022-11-11 19:01:40 +02:00
justcool393
9ba1e96268
fix prev commit
2022-11-02 19:30:00 -05:00
justcool393
c4469bf811
flags: make users unable to move their posts out of /h/chudrama
...
this required refactoring the entire thing so it didn't become with really really bad chain of ors that would span like 3000 miles
2022-11-02 19:24:00 -05:00
justcool393
8fe73cb68e
refactor blackjack a bit
2022-10-20 19:28:05 -05:00
justcool393
f4af073253
fix 17 potential 500s
2022-10-16 02:51:42 -07:00
justcool393
32a4693da9
fix a couple of potentially rare 500s
2022-10-15 14:35:24 -07:00
justcool393
39e49a508f
add 409 to errors
...
* also move check for AUTOJANNY_ID to before has_blocked
2022-10-11 08:40:19 -07:00
justcool393
c0acb1722b
abort a bunch of stuff where we manually returned JSON
2022-10-11 08:40:19 -07:00
justcool393
d0534897ec
...
2022-10-06 01:40:33 -07:00
justcool393
2fc3044d5b
shadowban perms and stuff
2022-10-05 19:24:37 -07:00
justcool393
d5a48871f8
user ban and also fix global hole mod a bit i hope i didn't screw up the templates
2022-10-05 18:58:43 -07:00
justcool393
4b78ed176a
global moderation perm and add some more checks for const perm
2022-10-05 18:16:52 -07:00
Aevann1
3bf62c6ff0
add missing ban_reason when shadowbanning
2022-10-02 13:31:02 +02:00
Aevann1
51d7cd6d7e
fix shit with hole logs
2022-09-29 12:18:27 +02:00
Aevann1
09cc43060d
add hole mod logs ( #380 )
2022-09-29 11:39:37 +02:00
Aevann1
87f3af5968
generate notifs for moving posts
2022-09-29 08:05:42 +02:00
Snakes
4a54c6219a
Add trailing final newlines to source files.
...
Touched a ton of files to finally standardize on having trailing
final newlines, as best practice recommends and so our devs stop
accidentally fighting each other over it.
This was performed automatically with the following:
git ls-files -z '*.py' | while IFS= read -rd '' f; \
do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
git ls-files -z '*.css' | while IFS= read -rd '' f; \
do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2022-09-29 01:43:29 -04:00
Aevann1
804c2b4e23
allow hole jannies to move posts in their hole to /h/chudrama
2022-09-14 12:45:28 +02:00
Aevann1
4abf75edc0
add error codes
2022-09-12 11:52:07 +02:00
Aevann1
7e811b47fb
reporting improvement
2022-09-12 11:48:01 +02:00
Aevann1
ae90eb1cf2
simplify house checking logic
2022-09-11 03:53:16 +02:00
Snakes
c506ff0c40
Add admin mute for user reports and modmail.
2022-09-01 17:30:15 -04:00
Aevann1
8e74171d9d
exclude authorized bots from hole restrictions
2022-09-01 22:01:03 +02:00
Aevann1
b5d500a98e
add house holes
2022-08-21 17:24:16 +02:00
Aevann1
a36c0f9dd3
trying to fix exiling
2022-08-20 22:24:20 +02:00
Aevann1
b71d55cfb9
don't show jannies flairing in the modlog
2022-08-20 22:14:20 +02:00
Aevann1
2006e56bfd
do this https://rdrama.org/h/braincels/post/95884/attn-brocels/2548322?context=8#context
2022-08-20 15:57:31 +02:00
Aevann1
5234c8ef21
remove weird spaes
2022-08-17 22:30:07 +02:00
Aevann1
9341f2368a
make some function names shorter
2022-08-11 06:05:23 +02:00
Aevann1
9a2b80e374
spam carp inbox
2022-08-04 23:20:29 +02:00
Aevann1
f920371f3a
fix this https://rdrama.co/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2395188?context=8#context
2022-07-29 02:43:22 +02:00
Aevann1
8c4a4486a1
fix this https://rdrama.co/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2390057?context=8#context
2022-07-28 16:19:58 +02:00
Aevann1
2d21863e19
replace "request.host" with "SITE"
2022-07-13 20:14:37 +02:00
Aevann1
aa4ab5b217
sneed
2022-07-13 17:16:53 +02:00
Snakes
3416ed76e4
Increase rate-limit on /del_report/.
2022-07-08 20:46:44 -04:00
Aevann1
a8fe49f232
kitchen sink commit, all over the place
2022-07-08 21:03:04 +02:00
Snakes
6ad935e12a
Permission flags UI visibility; start PERMS dict.
...
Original work started for WPD and LGB, who wish to restrict flags
visibility in the UI based on admin_level. To support this change and
upcoming changes, `const.PERMS: string -> int` was created.
Potentially targetting a future design where Permissions is a proper
business object integrated with the User model; however, for now just
looking toward getting admin_level magic numbers centralized.
This commit applies PERMS to: create_hole, flags visibility in UI,
flag removal in UI & backend. Flag visibility in Comment & Submission
json_raw methods is unaffected to avoid needing a user object to
build the JSON.
2022-07-06 23:45:33 -04:00
Aevann1
ed02d7572a
rename "frontpage" to "main feed" in move_hole mod action
2022-07-04 04:54:03 +02:00
Aevann1
35e2e12e24
OPs can now rehole their posts
2022-07-04 04:19:43 +02:00
Aevann1
cff34fb3a4
reducing query volume, #2
2022-06-26 03:11:02 +02:00
Snakes
36d24cf213
Refactor hole follow notifs to encapsulate.
...
Fixes bug where admins moving a post into a hole doesn't notify
followers of the destination hole.
Also, we now have a route endpoint for reholing that is potentially
usable for e.g. an actual post_actions button to rehole, rather than
the report command UI at present.
2022-06-22 17:21:12 -04:00
Snakes
b94e71450f
Add un-holing to hole report command.
2022-06-09 02:42:52 -04:00
Aevann1
1bce1c273f
no more 500 error
2022-06-07 12:32:48 +02:00
Aevann1
f7dea74b37
fds
2022-05-26 21:19:33 +02:00
Aevann1
bfc50ee469
sf
2022-05-09 17:29:44 +02:00
Aevann1
6b10d097a2
mn
2022-05-05 01:09:46 +02:00
Aevann1
47d01ed00b
vb
2022-05-03 04:15:35 +02:00
Aevann1
d026174472
fds
2022-04-23 00:48:01 +02:00
Aevann1
f3743d717d
fds
2022-04-18 23:11:30 +02:00
Aevann1
99cb01d9fc
fdsfds
2022-04-15 18:28:08 +02:00
Aevann1
4c2f7d5667
fsd
2022-04-04 23:15:25 +02:00
Aevann1
0293f60453
fart
2022-03-19 21:15:13 +02:00
Aevann1
e8044f48e3
bcv
2022-02-18 14:01:24 +02:00
Aevann1
2ac0ae76a5
vbn
2022-02-18 11:39:12 +02:00
Aevann1
729e4a4c62
g
2022-02-16 03:16:01 +02:00
Aevann1
e3fcfbf690
gdf
2022-02-04 15:11:14 +02:00
Aevann1
70af0a7e60
sfd
2022-02-04 15:11:11 +02:00
Aevann1
2b6418a132
testing
2022-01-15 08:31:17 +02:00
Aevann1
b69199054c
under attack
2022-01-09 17:15:02 +02:00
Aevann1
d0f3ae65e5
sfd
2022-01-07 23:03:14 +02:00
Aevann1
00e5e1c048
fsd
2022-01-02 02:06:46 +02:00
Aevann1
edca73723a
sfdsfd
2021-12-09 23:21:52 +02:00
Aevann1
3634fed841
fsfs
2021-12-08 01:18:06 +02:00
Aevann1
6bdbd8117e
fdsdsf
2021-12-05 22:22:57 +02:00
Aevann1
76ead80d6d
fsdfsd
2021-12-05 21:45:08 +02:00
Aevann1
5f6eb77768
fdsfddfs
2021-11-22 16:16:58 +02:00
Aevann1
b139ed44df
dfsfds
2021-11-16 17:24:20 +02:00
Aevann1
9e449dd8b0
redundant
2021-11-06 17:52:48 +02:00
Aevann1
0ed1212131
dfsf
2021-11-06 02:33:32 +02:00
Aevann1
83dcd2b198
fds
2021-11-02 13:33:36 -07:00
Aevann1
9c7878d7c9
fds
2021-10-20 01:43:11 +02:00
Aevann1
efa408ab2c
fd
2021-10-15 16:08:27 +02:00
Aevann1
28c5502d94
fdsfds
2021-10-08 03:41:25 +02:00
Aevann1
82ff6c45a9
dfsfds
2021-10-08 03:40:47 +02:00
Aevann1
fd2d6def63
fdsfsd
2021-10-08 03:40:09 +02:00
Aevann1
3233424c83
dsffds
2021-10-08 03:38:32 +02:00
Aevann1
f09d25fd04
fdsfsd
2021-10-07 08:04:29 +02:00
Aevann1
a5ce637b50
fgg
2021-10-05 21:15:48 +02:00
Aevann1
a728578adc
sdfdfs
2021-10-01 22:06:56 +02:00
Aevann1
1e5a59c4be
dsf
2021-09-29 17:42:28 +02:00
Aevann1
dcaefaa2c9
emoji update
2021-09-29 17:38:19 +02:00
Aevann1
adcac95850
gf
2021-09-26 11:04:49 +02:00
Aevann1
5e716cac7c
fsfs
2021-09-19 20:38:24 +02:00
Aevann1
731351e5a2
fsddsf
2021-09-19 15:11:34 +02:00
atrc445
67d8bd4324
fix emoji tags
2021-09-19 13:07:13 +02:00
Aevann1
1aa81273d5
sfd
2021-09-17 10:29:05 +02:00
Aevann1
9fe06dc7fc
fd
2021-09-16 19:15:07 +02:00
Aevann1
88ca2d6206
fd
2021-09-16 19:02:58 +02:00
Aevann1
4e18f2ead3
re
2021-09-13 17:58:52 +02:00
Aevann1
aa917df15b
fd
2021-09-12 08:41:19 +02:00