Commit Graph

5840 Commits (585d8f96956ec29bc48bb28b0c486a0892c8ec8b)

Author SHA1 Message Date
Aevann 0c303b81a3 move CSP to nginx again 2022-12-31 08:38:59 +02:00
Aevann 8ee189022b seething hatred 2022-12-30 21:01:47 +02:00
Aevann c4872ecb07 Revert "attempt to fix ratelimiting user"
This reverts commit 99597fc36c.
2022-12-30 20:43:13 +02:00
Aevann 99597fc36c attempt to fix ratelimiting user 2022-12-30 20:40:58 +02:00
Aevann 9a8c986f93 attempt to fix ratelimiting user 2022-12-30 20:33:07 +02:00
Aevann af60fc3ed7 fix exploit 2022-12-30 20:19:34 +02:00
Aevann f5211c19f9 fix chat annoyance 2022-12-30 20:09:55 +02:00
Aevann 4c371408da make /signup more friendly to retards 2022-12-30 19:29:04 +02:00
Aevann 9490f1796c check badge names 2022-12-30 18:28:24 +02:00
Aevann af59e82528 restore banning domains 2022-12-30 18:24:20 +02:00
Aevann 5c13700080 hide ghost identity leak in dev console 2022-12-30 18:22:57 +02:00
Aevann e0e8eb3dd6 fix mod log links 2022-12-30 18:10:29 +02:00
Aevann 9e0a3fd6b9 reduce commit hash from 12 chars to 7 2022-12-30 16:39:34 +02:00
Aevann 7cc9170711 show live counter of registered users 2022-12-30 15:54:49 +02:00
Aevann 0bbe5d5ddd show live commit to everyone 2022-12-30 15:32:58 +02:00
Aevann f0b20cad55 the worst fucking code you'll ever see 2022-12-30 14:14:18 +02:00
Aevann 6927009b3a delete /comments 2022-12-30 09:35:32 +02:00
Aevann 93e9a42fa3 stop using inline style/script elements 2022-12-29 16:20:27 +02:00
Aevann 56b80d447d remove unnecessary ruqqus holdover 2022-12-29 12:42:08 +02:00
Aevann 909e3f5f29 use a cool flask feature i didnt know about 2022-12-29 12:39:10 +02:00
Aevann 1ec32c3895 combine 2 replace statements 2022-12-29 12:35:49 +02:00
Aevann c1e147c190 dont pin agendaposter comment 2022-12-29 09:01:36 +02:00
Aevann 9540e7c26e same as last commit 2022-12-28 16:37:26 +02:00
Aevann d932c07b3d fix videos on wpd 2022-12-28 16:34:01 +02:00
Aevann c326c999f2 fix csp violation 2022-12-28 12:25:52 +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 ccfb99cb63 fix 500 error 2022-12-28 11:44:39 +02:00
Aevann 04c91082a5 also show me "unshadowban" and "unban_user" 2022-12-28 11:37:55 +02:00
Aevann 7b71c36e3f require reason for banning 2022-12-28 11:31:27 +02:00
Aevann 5fef411e0c fix 500 error 2022-12-28 11:28:00 +02:00
Aevann 678f40ccba consistency 2022-12-28 10:35:41 +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 3b8bb2576b fix jc mistake 2022-12-27 08:19:36 +02:00
Aevann 68c00456f0 patch another janny xss 2022-12-27 08:11:44 +02:00
Aevann 84874ab3ff fix 500 error 2022-12-27 07:40:54 +02:00
Aevann 54b49d374c minor fix 2022-12-27 07:37:21 +02:00
Aevann 47ba7f11f2 limit LLM cuck to private toggle 2022-12-27 07:31:28 +02:00
Aevann 5fdec63e8c disallow changing site settings in devrama 2022-12-27 07:25:29 +02:00
Aevann 844c58fe90 dont print /csp_violations when bc of extension 2022-12-27 07:20:32 +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 0060d5e293 open devrama again 2022-12-27 06:35:25 +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 937443560c limit devrama access to meself 2022-12-27 06:17:16 +02:00
Aevann fc95e3741f fix this https://stupidpol.site/h/meta/post/134631/im-too-lazy-to-test-so/3311192#context 2022-12-27 06:08:45 +02:00
Aevann 0fb7418ad9 disable removing jannies in devrama 2022-12-27 06:01:57 +02:00
Aevann 99ab57dea4 clearer error message when replying to deleted shit 2022-12-27 05:52:41 +02:00
Aevann 2bf85bb7ca fix 2022-12-27 05:40:03 +02:00
Aevann 1715dc938d dont generate nonce for xhr and increase nonce elngth 2022-12-27 05:00:15 +02:00
Aevann ff5df9e610 fix prev commit 2022-12-27 04:52:25 +02:00
Aevann 4add61d045 fix devrama jannying 2022-12-27 04:50:42 +02:00
Aevann 0336e87619 exclude devrama from 2fa requirement 2022-12-27 03:54:19 +02:00
Aevann 25e0291b1d minor fix for 500 error 2022-12-27 03:37:41 +02:00
Aevann 6114111654 tighten CSP 2022-12-27 03:22:39 +02:00
Aevann 644772d397 replace mention pfps too 2022-12-26 21:00:49 +02:00
Aevann bc453f8057 add missing import 2022-12-26 05:14:02 +02:00
Aevann 40305f01f2 dont lock jannies out of /chat 2022-12-26 04:49:14 +02:00
Aevann f37e1dc702 disallow jannoids from undoing chud awards 2022-12-26 04:38:32 +02:00
Aevann e3529d0495 use abort instead of return {"error": 2022-12-26 04:37:30 +02:00
Aevann 561b14cfd6 make post thumbnails not animated 2022-12-26 04:16:46 +02:00
Aevann 9af435adf0 im genuinely fucking retarded 2022-12-26 04:14:09 +02:00
Aevann d5eed41992 dont notify me of my own modmail message 2022-12-26 02:14:47 +02:00
Aevann 205ca3dc6f same as last commit 2022-12-25 22:41:36 +02:00
Aevann c4e4a8d853 give jannies push notifs for chat 2022-12-25 22:30:50 +02:00
Aevann d30d6b8314 limit chat on rdrama to jannoids 2022-12-25 22:13:29 +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 f255a6d8c8 move more env vars to const.py 2022-12-25 05:28:57 +02:00
Aevann ec803e1a68 minor syntax change 2022-12-25 02:54:53 +02:00
Aevann 96533921c3 add randomized taglines 2022-12-25 01:12:05 +02:00
Aevann 715fecbb15 more detailed toast on banning/chudding 2022-12-25 00:45:01 +02:00
Aevann ecfcbaf3df make hat_active return a tuple 2022-12-25 00:21:49 +02:00
Aevann 73ab9fa4ff Revert "fix 500 error + add @lazy"
This reverts commit d6548123e3.
2022-12-24 23:35:11 +02:00
Aevann d6548123e3 fix 500 error + add @lazy 2022-12-24 21:30:07 +02:00
Aevann 0299a287ed Revert "remove #context in links"
This reverts commit 169dc4ebef.
2022-12-24 21:19:47 +02:00
Aevann ecf95ef51e force posts by @intervention into chudrama 2022-12-24 21:11:32 +02:00
Aevann 490aeddb02 dont shadowban alrdy shadowbanned nibbas 2022-12-24 20:59:47 +02:00
Aevann 7da9a224e9 don't cache user objects in redis 2022-12-24 18:53:13 +02:00
Aevann 38247317fd fix DMs 2022-12-24 01:07:51 +02:00
Aevann 97476a604e actually fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3295805 2022-12-24 00:30:03 +02:00
Aevann 4d1183f3ec Revert "Revert "fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3256216?context=8#context""
This reverts commit 5a41160865.
2022-12-24 00:29:04 +02:00
Aevann 5a41160865 Revert "fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3256216?context=8#context"
This reverts commit 537e729195.
2022-12-24 00:26:58 +02:00
Aevann 667142adc4 try fixing https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3295805 2022-12-24 00:24:16 +02:00
Aevann a63b02470d use sets with in statements 2022-12-24 00:22:41 +02:00
Aevann 579122f6d4 exclude me from jannie progstack 2022-12-24 00:15:52 +02:00
Aevann 14c521911a fix 500 error 2022-12-23 23:44:47 +02:00
Aevann 853e986624 fix https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3291123 2022-12-23 03:36:20 +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 e45fd63d64 do this https://watchpeopledie.tv/h/aftermath/post/17441/horribly-mangled-corpse-after-traffic-accident/344509 2022-12-23 02:47:01 +02:00
Aevann 2ad04d472c stack benefactor awards 2022-12-23 02:44:52 +02:00
Aevann 942b5102bb remove forgotten if True 2022-12-23 00:43:03 +02:00
Aevann 9eb285c5ca abort(500) on /votes for shadowbanned nigs 2022-12-23 00:42:44 +02:00
Aevann c89e757a94 delete frontlist cache on hole pin or unpin 2022-12-23 00:39:59 +02:00
Aevann 31dd061b35 make syntax clearer 2022-12-23 00:36:50 +02:00
Aevann 5d6d108dd5 remove redundant domain bans 2022-12-23 00:25:31 +02:00
Aevann ad34c7df3f fix 500 error 2022-12-22 23:56:29 +02:00
Aevann 2b3b25c188 fix 500 error 2022-12-22 23:26:46 +02:00
Aevann fb66355d2a remove leftover print statement 2022-12-22 23:25:40 +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 f0eee0aa68 fix 500 error on voting 2022-12-22 22:51:56 +02:00
Aevann 284b3ba9ec delete property that jc forgot to actually define... 2022-12-22 22:46:05 +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 e6b7b23605 fix 500 error for chud award on profile wall 2022-12-22 17:19:31 +02:00
Aevann1 b96c0642bd give jannies progstack 2022-12-22 16:08:18 +02:00
Aevann1 837000505f remove DONT_LINK_ALTS in favor of DONT_SHADOWBAN 2022-12-22 00:38:12 +02:00
Aevann1 697e7d60b0 same as last commit but for @jimjones 2022-12-22 00:23:24 +02:00
Aevann1 49cae21709 prevent LLM alts from being linked with him 2022-12-22 00:19:14 +02:00
Aevann1 97e3623ef0 default comment_idlist timefilter to "day" 2022-12-21 22:15:37 +02:00
Aevann1 98b427e3a2 prevent DDOS 2022-12-21 22:14:33 +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 745e741d95 remove most env defaults (i dislike them, cope and sneeze) 2022-12-21 15:09:23 +02:00
Aevann1 3ae5292ce4 remove pcm from code 2022-12-21 14:42:41 +02:00
Aevann1 1b7eb7cb87 Revert "add print statements for debugging /stats"
This reverts commit a7ec033698.
2022-12-21 01:00:26 +02:00
Aevann1 a7ec033698 add print statements for debugging /stats 2022-12-21 00:50:51 +02:00
Aevann1 fe6fe68e3c fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3276699 2022-12-20 23:30:35 +02:00
Aevann1 90d5399de1 2fa minor change 2022-12-20 23:20:32 +02:00
Aevann1 d133ed0966 fix 500 error i think 2022-12-20 23:15:24 +02:00
Aevann1 6c4a53b333 separate 2fa error messages 2022-12-20 18:56:44 +02:00
Aevann1 59738f5701 minor push notifs title fix 2022-12-20 05:08:58 +02:00
Aevann1 169dc4ebef remove #context in links 2022-12-20 05:05:13 +02:00
Aevann1 ea322e4c20 remove ?context=8 2022-12-20 05:03:59 +02:00
Aevann1 e08e2ce1c9 fix wall push notif url that JC broke 2022-12-20 05:03:43 +02:00
Aevann1 74457e5468 rework stats a bit 2022-12-20 04:26:27 +02:00
Aevann1 a7d9d2ed6a make event_music become False when receiving grinch award 2022-12-20 04:07:37 +02:00
Aevann1 2183161916 add toggle for event music 2022-12-20 03:38:19 +02:00
Aevann1 373a6cf0db add grinch 2022-12-20 03:13:34 +02:00
Aevann1 bee14957a7 increase cache timeout for stats by x10 2022-12-20 02:43:51 +02:00
Aevann1 eee0dfce6a restore /stats 2022-12-20 02:42:39 +02:00
Aevann1 c190fa89b2 give jannoids notifs for deleted and removed comments 2022-12-19 23:28:37 +02:00
Aevann1 4997ba561a disable 2fa requirement in localhost 2022-12-19 23:27:56 +02:00
Aevann1 e217cc9758 give new user notifs to 3 jannies in PCM 2022-12-19 22:32:24 +02:00
Aevann1 e6e8fa0d1a dont link any alts to boo's main account 2022-12-19 22:20:57 +02:00
Aevann1 f19bbb1c09 double XP 2022-12-19 21:09:51 +02:00
Aevann1 ecb3ee52b4 disable admin features unless 2FA configured 2022-12-19 20:57:20 +02:00
Aevann1 29fa5bcf4d add lootboxes 2022-12-19 19:12:07 +02:00
Aevann1 2028216c45 do this https://stupidpol.site/h/slackernews/post/132440/ml-engineer-analyzes-what-chatgpt-marks/3265102#context 2022-12-19 19:12:07 +02:00