Commit Graph

939 Commits (1ec32c3895eeab23a673520abcc396ef8ee03de9)

Author SHA1 Message Date
Aevann 1ec32c3895 combine 2 replace statements 2022-12-29 12:35:49 +02:00
Aevann f7aa7d8dfd better error messages 2022-12-28 11:50:48 +02:00
Aevann 53fcc2ac40 fix reverting admin actions showing wrong username in toast 2022-12-28 11:47:30 +02:00
Aevann 7b71c36e3f require reason for banning 2022-12-28 11:31:27 +02:00
Aevann 181a660760 comment domains for now 2022-12-28 06:12:57 +02:00
Aevann bf00867fe8 fix devrama settings 2022-12-27 15:35:14 +02:00
Aevann 68c00456f0 patch another janny xss 2022-12-27 08:11:44 +02:00
Aevann 5fdec63e8c disallow changing site settings in devrama 2022-12-27 07:25:29 +02:00
Aevann 512c864327 fix xss on banning domains (only admins could use it) 2022-12-27 07:18:46 +02:00
Aevann 465565f26c give error when domain ban reason too long 2022-12-27 07:02:14 +02:00
Aevann 84bff9cb44 fix 2022-12-27 06:32:53 +02:00
Aevann d607e57c92 fixes 2022-12-27 06:24:25 +02:00
Aevann 0fb7418ad9 disable removing jannies in devrama 2022-12-27 06:01:57 +02:00
Aevann 644772d397 replace mention pfps too 2022-12-26 21:00:49 +02:00
Aevann f37e1dc702 disallow jannoids from undoing chud awards 2022-12-26 04:38:32 +02:00
Aevann c4fc37d23a remove unnecessary stuff since im deleting olduser now 2022-12-25 08:15:27 +02:00
Aevann 829db5684b perserve site stats on cache.clear() 2022-12-25 08:14:30 +02:00
Aevann 67f71997b6 move g.db.commit() 2022-12-25 08:13:07 +02:00
Aevann c798eb5090 no point using gevent if the worker timeout is the same lol 2022-12-25 08:12:49 +02:00
Aevann 4a93626040 partially revert prev commit and fix it 2022-12-25 07:54:34 +02:00
Aevann 2f48039a4b minor /move fix 2022-12-25 07:50:31 +02:00
Aevann 6ce3402726 migrate mentions too 2022-12-25 06:53:12 +02:00
Aevann ed16d42377 actually redirect to old_id instead of new_id 2022-12-25 06:37:29 +02:00
Aevann 987db717d6 use gevent for moving account shit 2022-12-25 06:25:47 +02:00
Aevann dc2c2fdc74 expand moving account shit 2022-12-25 06:02:33 +02:00
Aevann 715fecbb15 more detailed toast on banning/chudding 2022-12-25 00:45:01 +02:00
Aevann 7da9a224e9 don't cache user objects in redis 2022-12-24 18:53:13 +02:00
Aevann 9979efbf7a make it possible to edit badge attributes without removing and re-granting them 2022-12-23 03:01:24 +02:00
Aevann a54734c32f better caching for get_alt_graph 2022-12-22 23:24:36 +02:00
Aevann e6274e06f3 delete ability of jannies to clear internal cache 2022-12-22 22:52:36 +02:00
Aevann 92cbe64ac0 cache get_alt_graph for 1 hour 2022-12-22 22:44:37 +02:00
Aevann 0e6b144ed7 alt graph 2022-12-22 22:03:40 +02:00
Aevann1 1dab4f7804 fix last commit 2022-12-21 18:17:14 +02:00
Aevann1 faf17f420c add notification for make_admin and remove_admin 2022-12-21 16:38:02 +02:00
Aevann1 3ae5292ce4 remove pcm from code 2022-12-21 14:42:41 +02:00
Aevann1 e832be4c18 restore badge rate limit 2022-12-19 15:55:39 +02:00
Aevann1 54e3a7eeab fix 500 error 2022-12-18 19:01:06 +02:00
Aevann1 4a334133bc same as last commit 2022-12-18 18:47:11 +02:00
Aevann1 31aa9b09a8 relax ratelimit for badge_grant 2022-12-18 18:46:44 +02:00
Aevann1 9974f98b8c Revert "Revert "remove the logic for fixing old mentions""
This reverts commit 5e9e1872af.
2022-12-17 21:11:22 +02:00
Aevann1 5e9e1872af Revert "remove the logic for fixing old mentions"
This reverts commit 90f6f0b96e.
2022-12-17 21:05:29 +02:00
Aevann1 b6c01fb275 clicking twice shouldn't generate a mod log 2022-12-16 22:17:03 +02:00
Aevann1 90f6f0b96e remove the logic for fixing old mentions 2022-12-16 19:50:34 +02:00
Aevann1 8660fcaa2e fix old mentions 2022-12-16 19:47:40 +02:00
Aevann1 7c389bbdfd fix old mentions 2022-12-16 19:43:06 +02:00
Aevann1 bd8ac649d4 order punished listings by truescore instead 2022-12-15 20:31:58 +02:00
Aevann1 1773632a75 remove punished listings filtering 2022-12-14 15:17:39 +02:00
Aevann1 df804c3179 minor change to punished listings 2022-12-14 15:12:02 +02:00
Snakes cf5eff3f48
Revert "better shadowban propagation"
This reverts commit 129f335363.

If there exists a loop in alts, this sends a worker into an infinite
loop, thrashes the database, and eventually crashes the worker. This,
in practice, makes shadowbanning people with many alts impossible since
our alt linking algorithm almost explicitly creates cycles rather than
maintaining a tree.

To fix this, we need SQL that builds a set of all Users in the
connected Alt graph of a given user (likely using a recursive CTE)
and then bans them at once, rather than running a depth-first search
with maximum depth that doesn't remember previously visited nodes.

There is also potentially the chance that this isn't because of cycles
per se but rather because quintic polynomial behavior explodes quickly
even in the low-double-digits number of alts.
2022-12-13 23:21:53 -05:00
Aevann1 b923776e71 simplify punished listings 2022-12-14 00:29:56 +02:00