Commit Graph

58 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
Aevann1 87d5a0de46 improve ban modal and add chud modal 2022-11-05 04:12:22 +02:00
Aevann1 fdd608532b add type="button" to all <button> tags 2022-10-29 01:35:14 +02:00
Snakes 98936efe60
assetcache: apply to all CSS and JS assets. 2022-09-24 03:04:06 -04:00
Aevann1 4791e7b14b revert icon change 2022-09-08 19:24:00 +02:00
Aevann1 e9445efc22 make bootstrap work on localhost 2022-09-08 19:12:46 +02:00
Aevann1 f4e4ff3839 comsetic shit 2022-09-08 17:38:27 +02:00
Aevann1 71b5367874 cachebust all css and js 2022-09-05 01:50:43 +02:00
Aevann1 f0816853da make ban_reason logic a little better 2022-07-30 00:43:25 +02:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 57e424af5b revert the "defer" thing 2022-07-03 12:10:04 +02:00
Aevann1 a49325ba14 defer all scripts (this won't change anything for us since we use rocketloader, but it will fix javascript on localhost) 2022-07-03 09:42:33 +02:00
Aevann1 ffd0d9ed31 show duration on ban icon tooltip 2022-06-25 02:11:00 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 6619c2f4b2 dfg 2022-05-02 01:55:55 +02:00
Aevann1 b538d2a24c gdfg 2022-03-31 18:28:53 +02:00
Aevann1 a9f6f5a0e0 post 2022-03-19 18:19:02 +02:00
Aevann1 fa14b9019e blocks num 2022-03-06 03:53:11 +02:00
Aevann1 1576fcd57d farts on u 2022-02-28 04:06:15 +02:00
Aevann1 b70cf702b6 f 2022-02-02 02:06:29 +02:00
Aevann1 898ee7afb7 fddf 2022-02-01 04:20:25 +02:00
Aevann1 247caf8683 marsey marsey marsey 2022-01-22 13:54:48 +02:00
Aevann1 58717aea77 fsd 2022-01-19 12:17:21 +02:00
Aevann1 ec5745827e fsd 2022-01-19 12:16:31 +02:00
Aevann1 a93b2a1781 bb 2022-01-16 08:06:16 +02:00
Aevann1 e108fa509e b 2022-01-16 07:53:32 +02:00
Aevann1 89798803af dfs 2021-12-30 07:27:22 +02:00
Aevann1 c6a1514b32 fds 2021-12-29 18:01:01 +02:00
Aevann1 d5be93399c fsd 2021-12-28 14:41:26 +02:00
Aevann1 39e0ad5cf9 sdf 2021-12-25 01:00:09 +02:00
Aevann1 dada1cebf4 fdsfds 2021-12-23 21:05:41 +02:00
Aevann1 1c9567b240 i pray 2021-12-15 00:48:37 +02:00
Aevann1 f518a7497f sfdfsd 2021-12-12 22:14:30 +02:00
Aevann1 43125be074 sdffds 2021-12-12 22:00:30 +02:00
Aevann1 75961ad8f7 fdsfds 2021-12-12 21:58:21 +02:00
kek7198 238dbcfc65 Merge branch 'master' into mistletoe 2021-12-10 11:17:34 -06:00
Aevann1 ddb75e6ec6 fdssfd 2021-12-10 03:55:09 +02:00
kek7198 2216812f04 Merge branch 'master' into mistletoe 2021-12-09 13:32:42 -06:00
Aevann1 7b81aef8aa fdsfd 2021-12-09 16:32:46 +02:00
kek7198 141b220b8b fix 2021-12-06 11:34:26 -06:00
Aevann1 d8da5dc4c6 dsffds 2021-12-01 14:42:29 +02:00
Aevann1 37257b9618 dsffds 2021-12-01 14:25:00 +02:00
Aevann1 86edc811ba fdsfsd 2021-12-01 01:50:00 +02:00
Aevann1 3c9b64e417 sdsd 2021-12-01 01:25:16 +02:00
Aevann1 1a9997f6e3 dfsfsd 2021-11-30 19:55:33 +02:00
Aevann1 83dcd2b198 fds 2021-11-02 13:33:36 -07:00
Aevann1 42db6202eb maxlength 2021-10-29 18:57:50 +02:00
Aevann1 70c76a8cea 2nd 2021-10-26 23:11:14 +02:00
Aevann1 efa408ab2c fd 2021-10-15 16:08:27 +02:00
Aevann1 6cb54870ff fds 2021-09-26 13:06:03 +02:00