Commit Graph

188 Commits (8f2f48d6d1a1ab1e4e9f233e03fd3ac6cba1e282)

Author SHA1 Message Date
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 fd1b7d98bb voting in the shadow realm fixes 2022-11-12 07:55:16 -06:00
Aevann1 0f9bde0d7b sneed 2022-11-12 14:10:32 +02:00
Aevann1 1b4856e20f exclude slackernews from hole nerf 2022-11-11 15:37:40 +02:00
Aevann1 37068acadf exclude ('space', 'istory', 'dino') from hole nerf 2022-11-11 11:40:31 +02:00
Snakes 047571ae57
Revert "ranking: don't progstack every single post"
This reverts commit 7011c85313.
2022-11-09 18:31:29 -05:00
justcool393 7011c85313 ranking: don't progstack every single post 2022-11-09 17:18:34 -06:00
Aevann1 876f1d48f1 extend BOOSTED_USERS to comments 2022-11-09 23:28:11 +02:00
Aevann1 368b575716 add a comment in votes.py explaining my motivation 2022-11-09 22:56:27 +02:00
Aevann1 d85ac23c3c add BOOSTED_USERS 2022-11-09 22:53:24 +02:00
Aevann1 c8b4947fa4 tweak rdrama algo 2022-11-09 21:02:17 +02:00
Aevann1 aaa98b9290 sneed 2022-11-08 12:43:53 +02:00
Aevann1 9d22dbe92e sneed 2022-11-08 12:01:30 +02:00
justcool393 0fffa7efc0 rename truecoins to truescore 2022-11-06 23:04:34 -08:00
Aevann1 be2b4b6b59 apply perma progstack to /h/masterbaiters 2022-11-07 08:44:39 +02:00
Aevann1 507dc83ecd will someone pls kill me 2022-11-07 05:16:14 +02:00
Aevann1 ea101e77c5 give /h/cowtown perma-progstack 2022-11-07 04:14:45 +02:00
Aevann1 b526f6cc21 apply the realupvotes manipulation logic in rdrama only, since its the only site that uses realupvotes anyway 2022-11-07 03:35:46 +02:00
Aevann1 4c5c583c4d sneed 2022-11-07 03:13:57 +02:00
Aevann1 e3fb1b8871 fix 500 erro 2022-11-07 02:55:12 +02:00
Snakes 1eaebd2ea1
Extend special API comment display to bussy-bot. 2022-11-06 19:49:50 -05:00
Aevann1 e6d008e455 remove unnecessary tab character 2022-11-07 02:47:12 +02:00
Aevann1 acb8719236 slightly throttle posts in most holes to account for follower pings giving them an unfair advantage over unholed posts 2022-11-07 02:46:48 +02:00
Aevann1 7fc3488854 add 4 more boosted holes 2022-11-05 16:07:53 +02:00
justcool393 d5812096af voting: allow voting to cause a user's DC balance to go negative 2022-11-01 12:50:01 -05:00
Aevann1 6778ef14ad diversity is our strength 2022-10-30 20:27:36 +02:00
Aevann1 c4063f081c moved boosted sites to const.py 2022-10-30 00:53:42 +02:00
Aevann1 eb2adf4dc2 add more boosted sites 2022-10-30 00:52:38 +02:00
Aevann1 21aff0976b add more boosted sites 2022-10-30 00:49:53 +02:00
Aevann1 5201b1bc5a boost unusual drama sources 2022-10-29 19:20:59 +02:00
Snakes d869353fdf
Track coins awarded with votes.
Supports more complicated double XP shenanigans without creating
any cycles of user actions that create positive DC.
2022-10-23 18:23:51 -04:00
justcool393 ef840c4afd make it so you can't vote on messages 2022-10-15 10:12:55 -07:00
justcool393 39aa59a37a add g.is_api_or_xhr so we can use it where we want to give API output
* also use v.client for strict API clients
2022-10-15 02:11:36 -07:00
Aevann1 cdff11424f use charge_account everywhere 2022-10-12 18:33:00 +02:00
justcool393 941b5fa82d vote realness is in user model 2022-10-11 23:47:47 -07:00
justcool393 7ee3c78b2e ree 2022-10-11 22:51:04 -07:00
justcool393 5591d7d574 fix real votes 2022-10-11 22:27:27 -07:00
justcool393 9044548630 forgot to actually execute the query 2022-10-11 12:05:00 -07:00
justcool393 65e4a179b0 remove vote code duplication 2022-10-11 12:05:00 -07:00
justcool393 c0acb1722b abort a bunch of stuff where we manually returned JSON 2022-10-11 08:40:19 -07:00
Aevann1 d98e4c9c1c convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
justcool393 40c2360d00 don't duplicate checks for comments 2022-09-30 15:51:17 -07:00
Aevann1 135bd2c60c remove unnecessary gay shit 2022-09-14 11:20:59 +02:00
Aevann1 73dbb2dd7e change t2_ and t3_ to p_ and c_ 2022-09-06 00:52:22 +02:00
Aevann1 0c32d56cd6 casino + style shit 2022-09-05 01:15:37 +02:00
Aevann1 e5b2675f0d try to fix db 500 errors on wpd 2022-09-01 21:05:37 +02:00
Aevann1 f92a83724b try to fix 500 error in WPD 2022-08-26 16:57:14 +02:00
Aevann1 6a21dd347b Revert "Revert "Revert "restore autoflush"""
This reverts commit d84b26fc77.
2022-08-25 17:04:33 +02:00
Aevann1 d84b26fc77 Revert "Revert "restore autoflush""
This reverts commit 5aa03d87bb.
2022-08-24 16:36:44 +02:00
Aevann1 e5046c9f20 remove /h/slackernews from the boost 2022-08-24 00:00:15 +02:00