Commit Graph

297 Commits (496be6e5edf2caf049654df2c92ce6cd97ae805e)

Author SHA1 Message Date
Aevann 1d477b5c72 dont generate notifs for removed posts and comments except to jannies 2023-10-29 16:01:57 +03:00
Aevann a9e02098e7 fix group mentions overcharging ppl 2023-10-28 18:19:25 +03:00
Aevann cc8553b9a4 dont re-sanitize 2023-10-15 16:32:20 +03:00
Aevann e63df33a2a patch hole https://imgur.com/a/2xPrzrZ 2023-10-15 16:15:39 +03:00
Aevann e28049ea65 fix order of notifications 2023-10-11 23:02:00 +03:00
Aevann 62d1940a8f sub -> hole 2023-10-07 20:55:50 +03:00
Aevann 51a23a96cf fix 500 error 2023-10-05 13:05:20 +03:00
Aevann 74587b12da use can_see_shadowbanned 2023-10-05 12:44:42 +03:00
Aevann 9dc48c7acf make sure to hide ALL autojanny notifs generated by shadowbanned-cels from non-jannies 2023-10-05 11:43:52 +03:00
Aevann 99a3aba578 fix notifs 2023-10-05 10:38:35 +03:00
Aevann c43e4c0f7d same as last commit 2023-10-04 22:45:18 +03:00
Aevann 4da6fadae6 fix wrong syntax 2023-10-04 22:44:55 +03:00
Aevann 544adc4de6 allow jannies to get all kinds of notifs from shadowbanned users 2023-10-04 22:34:00 +03:00
Aevann 568f66e070 dont show <img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain2:" title=":marseytrain2:" src="https://i.rdrama.net/e/marseytrain2.webp"> when its not rendered 2023-09-26 18:39:06 +03:00
Aevann a9b078007e refactor slurs and profanities and put them in their own file 2023-09-22 20:01:30 +03:00
Aevann 6662eb0606 do this https://rdrama.net/h/countryclub/post/79285/-/4899909#context 2023-09-06 21:02:47 +03:00
Aevann 7facf9ff5b do this https://rdrama.net/h/countryclub/post/79285/-/4911807#context 2023-09-05 21:24:10 +03:00
Aevann d6cbbc05c6 simplar syntax 2023-08-31 13:46:07 +03:00
Aevann 6d429b06fa exempt JL2+ from 400 limit 2023-08-30 16:27:40 +03:00
Aevann ef3564c1a1 stop using NOTIFICATION_THREAD 2023-08-23 13:42:25 +03:00
Aevann 8f4a34135e fix if statement 2023-08-20 22:37:26 +03:00
Aevann f318153d27 reduce ping cost from 10/user to 5/user 2023-08-20 19:36:13 +03:00
Aevann e1d6c97465 Revert "use gevent.with_timeout whenever u can"
This reverts commit eb0af76e46.
2023-08-20 19:24:53 +03:00
Aevann eb0af76e46 use gevent.with_timeout whenever u can 2023-08-20 19:14:02 +03:00
Aevann dcb6ef56d4 fix 2023-08-20 11:17:38 +03:00
Aevann e1eecfc0f2 make sure shadowbanned-cels cant generate push notifs 2023-08-20 05:36:43 +03:00
Aevann b86f6fa1f7 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4833902#context 2023-08-20 05:11:59 +03:00
Aevann 9e147029d5 a much better approach to last commit 2023-08-20 03:58:58 +03:00
Aevann 49bc6bbba9 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4831722#context 2023-08-20 03:52:22 +03:00
Aevann 16cf545aa0 prevent repeated mentions when the mentioner changes their name 2023-08-16 00:35:43 +03:00
Aevann 3e596e6537 better method for me to deal with notif-spammers than blocking them 2023-08-15 19:27:44 +03:00
Aevann 4623e7c1a3 fix ping_cost not getting summed with previous value 2023-08-13 19:02:55 +03:00
Aevann 7ab046474f disallow !followers ping in posts 2023-08-11 16:38:49 +03:00
Aevann 5eb2c0dc27 add !followers 2023-08-11 16:34:56 +03:00
Aevann 3ec2038caf same as last commit 2023-08-11 16:15:34 +03:00
Aevann 1ab13d5020 exempt neofoids too 2023-08-10 15:00:11 +03:00
Aevann 72e6f4d681 fix 500 error 2023-08-09 16:46:34 +03:00
Aevann 1f15893731 fix typoe 2023-08-09 16:45:19 +03:00
Aevann b1c7336a92 exclude !biofoids and !jannies from 3bcf4e3d22 2023-08-09 16:44:19 +03:00
Aevann cd44456079 make it so u can use marseybux for pinging ping groups ur not a member of 2023-08-09 16:10:44 +03:00
Aevann 3bcf4e3d22 do this https://rdrama.net/h/meta/post/195365/dramatards-rly-join-eighteen-18-ping/4764206#context 2023-08-09 14:48:02 +03:00
Aevann ed34558f33 remove unnecessary .all() 2023-08-05 22:26:42 +03:00
Aevann e1088a3df4 fix 500 error 2023-08-03 08:16:57 +03:00
Aevann 299bda3b8a """""fix"""""" ping groups in /submit 2023-08-02 11:27:03 +03:00
Aevann 7fd46442d2 make !verifiecdrich a real ping group so ppl are able to leave it 2023-08-02 00:56:17 +03:00
Aevann 0900277226 add !verifiedrich and /h/highrollerclub for paypigs 2023-08-01 09:46:00 +03:00
Aevann 10d138db5d fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4691321#context 2023-08-01 02:12:42 +03:00
Aevann 90cb33c017 make group-pingspamming marginally faster (it will still timeout anyway bc of the transaction timeout i added in previous commit) 2023-07-28 01:08:06 +03:00
Aevann 5cbb2c7428 dont select all user columns when updating 2023-07-27 22:49:36 +03:00
Aevann 33ceccab7b fix https://media.discordapp.net/attachments/1104920967949586472/1134144475082543164/IMG_7559.png?width=282&height=611 2023-07-27 18:41:39 +03:00
Aevann 567deeeafa remove unused assignment 2023-07-26 15:20:32 +03:00
Aevann a94dda90dd remove unnecessary flushes 2023-07-25 23:35:54 +03:00
Aevann f0b51ed2c0 make !jannies dynamic 2023-07-21 17:27:49 +03:00
Aevann 2b9647a37e try random bullshit to fix timeouts 2023-07-17 17:49:26 +03:00
Aevann 783c90f9d3 do this https://rdrama.net/h/countryclub/post/79285/-/4494243#context 2023-07-05 23:44:50 +03:00
Aevann 8c526576ad fix repeated mentions 2023-07-04 02:43:29 +03:00
Aevann a5f21ea658 restore /update for !everyone since its needed 2023-07-03 00:48:23 +03:00
Aevann 25b9a0f535 stop usage of .update 2023-07-03 00:42:34 +03:00
Aevann b2ac0efc8c make link posts look visited when u visit them from notifs 2023-06-30 01:00:05 +03:00
Aevann 10a715302f show !everyone's cost 2023-06-29 23:48:27 +03:00
Aevann eeb975b177 cachebust everything 2023-06-29 23:14:30 +03:00
Aevann 348f16266f remove carprama 2023-06-29 23:14:24 +03:00
Aevann 9519020de8 replace icon and headericon with carp 2023-06-28 17:31:41 +03:00
Aevann 6958b70975 do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4197134#context 2023-06-24 23:31:12 +03:00
Aevann d9bed378a9 complement 32fa466e6a 2023-06-23 16:46:42 +03:00
Aevann 498f77bcff fix duplicated post mentions 2023-06-02 16:43:27 +03:00
Aevann 6eff7abe49 replace "bots" with "BOT_IDs" 2023-05-13 01:29:34 +03:00
Aevann f3a0080698 remove useless tabs 2023-05-06 00:47:07 +03:00
Aevann 93422e2be9 cache-bust all 2023-04-25 18:24:12 +02:00
Aevann 0b61725135 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3859093#context 2023-03-25 00:19:14 +02:00
Aevann a5d7cc63ed cachebust all assets 2023-03-21 15:58:14 +02:00
Aevann 57765f0776 revert sqlalchemy changes 2023-03-16 08:27:58 +02:00
Aevann f768d81103 keep db sessions open 2023-03-15 05:58:00 +02:00
Aevann d18c3ae86a censor push notifs to prevent irl embarrassment 2023-03-12 16:56:44 +02:00
Aevann 48dd721feb mentions - try consolidating regex 2023-03-12 12:27:22 +02:00
Aevann b79744f73b clearer error for ping groups 2023-03-12 02:08:57 +02:00
Aevann fb57d433cd make alerts more forgiving 2023-03-11 07:07:10 +02:00
Aevann 54bd633fda fix group mentions charging even if u were a member 2023-03-10 04:17:13 +02:00
Aevann 355af22171 do this https://stupidpol.site/post/152490/downvoting-isnt-funny-its-just-annoying/3729531#context 2023-03-07 02:25:40 +02:00
Aevann 2d2a1ca28c always use charge_account() 2023-03-04 20:32:55 +02:00
Aevann d7f42ac50a dont give shekels to ppl not notified bc of blocks + dont give shekels to ppl ALSO mentioned directly + prevent group double charging on edit + do this https://stupidpol.site/h/countryclub/post/79285/-/3695711#context 2023-03-02 21:56:43 +02:00
Aevann 308bb03125 add !everyone 2023-03-02 02:32:51 +02:00
Aevann 712239157f two-way-blocks for ping groups 2023-03-01 22:28:34 +02:00
Aevann cb76ab0da9 remove !everyone 2023-03-01 22:21:56 +02:00
Aevann b3f75b9beb always use author_name even if its not needed for consistency 2023-03-01 21:28:10 +02:00
Aevann 4a52246111 add !everyone 2023-03-01 07:32:19 +02:00
Aevann bc9437497d do this https://stupidpol.site/h/countryclub/post/79285/-/3681399#context 2023-02-28 21:27:38 +02:00
Aevann 9078ddbc34 add CAN_PING_ALL_GROUPS perm for myself 2023-02-27 03:13:38 +02:00
Aevann 615d71dda0 fix 500 error 2023-02-26 13:22:16 +02:00
Aevann fd9e1c3fec in push notifs: link the post I was mentioned in 2023-02-26 11:37:44 +02:00
Aevann a90744145a add ping groups 2023-02-24 08:31:06 +02:00
Aevann 22051152de fix 500 error 2023-02-24 05:00:22 +02:00
Aevann e37031c4dd make sure g.db.flush() is always above _push_notif_thread 2023-02-24 04:36:25 +02:00
Aevann 3e7ccb7756 add push notifs to add_notif() 2023-02-24 04:28:10 +02:00
Aevann 760b2e6a4d add push notifs for repeatable notifications 2023-02-24 04:09:49 +02:00
Aevann 6755cbf28a move an if condition to push_notif() 2023-02-24 03:56:46 +02:00
Aevann 98b9c27442 readd temp code i removed earlier 2023-02-18 20:35:22 +02:00
Aevann 96a85bd140 remove temp code 2023-02-18 19:09:33 +02:00
Aevann 69480ac2c5 temp code cuz im lazy 2023-02-18 19:09:16 +02:00
Aevann 198a1f65bf make it exclusive to rdrama 2023-02-18 18:59:36 +02:00