Commit Graph

277 Commits (909fe8bc0ac5eaea4d47cb597bba3366ba28edea)

Author SHA1 Message Date
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
Aevann 0015deba7a add !biofoids ping group 2023-02-18 18:58:59 +02:00
Aevann 88814ee208 expand blackjack 2023-02-07 05:31:49 +02:00
Aevann 72fabb1dff Revert "Revert "handle race condition for signup notifs""
This reverts commit 44a8c2338e.
2023-01-25 03:09:32 +02:00
Aevann 1919fc822a give me push notifs for DMs 2023-01-20 05:42:05 +02:00
Aevann 044664a25e get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
Aevann 44a8c2338e Revert "handle race condition for signup notifs"
This reverts commit 4d5440a7f3.
2022-12-26 22:14:33 +02:00
Aevann 4d5440a7f3 handle race condition for signup notifs 2022-12-26 22:08:42 +02:00
Aevann c4e4a8d853 give jannies push notifs for chat 2022-12-25 22:30:50 +02:00
justcool393 ab41db22b7 [DO NOT MERGE] multiple sub banners (#59)
allows multiple sub banners

Snakes note: By request of Carp, especially for WPD.

Co-authored-by: justcool393 <justcool393@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: #59
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-11 23:44:34 +00:00
Aevann1 3907a2f25f make the gevent sequential 2022-12-03 01:25:48 +02:00
Snakes 9b09181e28
Dispatch push notifications using greenlets. 2022-12-02 18:15:58 -05:00
Aevann 5c2dab73c7 stop using pusher (#37)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: #37
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-02 22:21:18 +00:00
Aevann1 955ec104f2 use the new /icon.webp link everywhere 2022-11-30 01:25:11 +02:00
Aevann1 b6efc27551 use "i" instead of "assets/images" 2022-11-30 00:52:19 +02:00
justcool393 3d7737387c use default config vlaue const everywhere 2022-11-15 10:55:00 -06:00
justcool393 8f2f48d6d1
[DO NOT MERGE] import detanglation (#442)
* move Base definition to files.classes.__init__.py

* fix ImportError

* move userpage listing to users.py

* don't import the app from classes

* consts: set default values to avoid crashes
consts: warn if the secret key is the default config value

* card view: sneed (user db schema)

* cloudflare: use DEFAULT_CONFIG_VALUE

* const: set default values

* decouple media.py from __main__

* pass database to avoid imports

* import cleanup and import request not in const, but in the requests mega import

* move asset_submissions site check to __init__

* asset submissions feature flag

* flag

* g.is_tor

* don't import request where it's not needed

* i think this is fine

* mail: move to own routes and helper

* wrappers

* required wrappers move

* unfuck wrappers a bit

* move snappy quotes and marseys to stateful consts

* marsify

* :pepodrool:

* fix missing import

* import cache

* ...and settings.py

* and static.py

* static needs cache

* route

* lmao all of the jinja shit was in feeds.py amazing

* classes should only import what they need from flask

* import Response

* hdjbjdhbhjf

* ...

* dfdfdfdf

* make get a non-required import

* isort imports (mostly)

* but actually

* configs

* reload config on import

* fgfgfgfg

* config

* config

* initialize snappy and test

* cookie of doom debug

* edfjnkf

* xikscdfd

* debug config

* set session cookie domain, i think this fixes the can't login bug

* sdfbgnhvfdsghbnjfbdvvfghnn

* hrsfxgf

* dump the entire config on a request

* kyskyskyskyskyskyskyskyskys

* duifhdskfjdfd

* dfdfdfdfdfdfdfdfdfdfdfdf

* dfdfdfdf

* imoprt all of the consts beacuse fuck it

* 😭

* dfdfdfdfdfdfsdasdf

* print the entire session

* rffdfdfjkfksj

* fgbhffh

* not the secret keys

* minor bug fixes

* be helpful in the warning

* gfgfgfg

* move warning lower

* isort main imports (i hope this doesn't fuck something up)

* test

* session cookie domain redux

* dfdfdfd

* try only importing Flask

* formkeys fix

* y

* :pepodrool:

* route helper

* remove before flight

* dfdfdfdfdf

* isort classes

* isort helpers

* move check_for_alts to routehelpers and also sort imports and get rid of unused ones

* that previous commit but actkally

* readd the cache in a dozen places they were implicitly imported

* use g.is_tor instead of request.headers. bla bla bla

* upgrade streamers to their own route file

* get rid of unused imports in __main__

* fgfgf

* don't pull in the entire ORM where we don't need it

* features

* explicit imports for the get helper

* explicit imports for the get helper redux

* testing allroutes

* remove unused import

* decouple flask from classes

* syntax fix also remember these have side fx for some reason (why?)

* move side effects out of the class

* posts

* testing on devrama

* settings

* reloading

* settingssdsdsds

* streamer features

* site settings

* testing settings on devrama

* import

* fix modlog

* remove debug stuff

* revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6

* archiveorg to _archiveorg

* skhudkfkjfd

* fix cron for PCM

* fix bugs that snekky wants me to

* Fix call to realbody passing db, standardize kwarg

* test

* import check_for_alts from the right place

* cloudflare

* testing on devrama

* fix cron i think

* shadow properly

* tasks

* Remove print which will surely be annoying in prod.

* v and create new session

* use files.classes

* make errors import little and fix rare 500 in /allow_nsfw

* Revert "use files.classes"

This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6.

* pass v to media functions rather than using g

* fix

* dfdfdfdfd

* cleanup, py type checking is dumb so don't use it where it causes issues

* Fix some merge bugs, add DEFAULT_RATELIMIT to main.

* Fix imports on sqlalchemy expressions.

* `from random import random` is an error.

* Fix replies db param.

* errors: fix missing import

* fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text

* Fix signup formkey.

* fix 2 500s

* propagate db to submissions

* fix replies

* dfdfdfdf

* Fix verifiedcolor.

* is_manual

* can't use getters outside of an app context

* don't attempt to do gumroad on sites where it's not enabled

* don't attempt to do gumraod on sites's where it's unnecessary

* Revert "don't attempt to do gumroad on sites where it's not enabled"

This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3.

* fix 500

* validate media type

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 03:19:08 -06:00
justcool393 bf98444ead push notifications: fix pusher causing errors on large unicode msgs 2022-11-13 05:12:05 -06:00
Aevann1 cdffb764bd remove @jannies 2022-10-31 00:41:26 +02:00
justcool393 a2c16534a4 admin pings: truescore requirement and exclude shadowban and make a permission 2022-10-22 19:45:15 -05:00
Aevann1 c4103cfaf4 add @jannies to notify all jannies 2022-10-23 01:50:56 +02:00