Commit Graph

49 Commits (5d49821e7a8d9187d11af5de735cbbeebb21ddcb)

Author SHA1 Message Date
Aevann 5d49821e7a use https whenever u can 2022-11-28 00:53:37 +02: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
Aevann1 5234c8ef21 remove weird spaes 2022-08-17 22:30:07 +02:00
Aevann1 83a931343e uncomment rss feed 2022-07-08 18:21:20 +02:00
Aevann1 5bbd14ebd6 testing 2022-07-01 15:11:41 +02:00
Snakes 75758dd511 Feeds: make RSS valid, part trois.
Hopefully finishes the RSS fix saga. This one done in-house rather
than by patch, as 5d6d4f9ca0 and 29fdc774a9 had been.

This final change ensures the <updated> tag is always used, even
for un-edited posts. This appears to pass the W3C Validator using
local test data. We shall see how it behaves with data on prod.
2022-05-30 07:27:52 -04:00
Snakes 29fdc774a9 Feeds: make valid, part deux.
Continuation of 5d6d4f9ca0. Again, h/t to our friends at WPD
for providing a patch.
2022-05-30 06:58:42 -04:00
Snakes 5d6d4f9ca0 Feeds: make RSS valid.
Patch provided via c/o tejmar of WPD.
Intended to fix the invalid RSS format which caused issues when
using the feeds with Discord and Telegram.
2022-05-30 04:30:57 -04:00
Aevann1 ed7e4c61c1 fds 2022-05-16 21:42:34 +02:00
Aevann1 19863e8c1a sfd 2022-05-16 21:41:19 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 394402c0c1 fsd 2022-05-01 02:53:24 +02:00
Aevann1 5c21180705 Revert "vxc"
This reverts commit 4d0c7ba456.
2022-04-25 23:59:12 +02:00
Aevann1 4d0c7ba456 vxc 2022-04-25 18:38:06 +02:00
Aevann1 1f5fa278d0 fsd 2022-04-17 11:23:42 +02:00
Aevann1 7713fd891d fsd 2022-04-02 19:11:35 +02:00
Aevann1 c7bab4ec6c fsd 2022-01-28 23:42:09 +02:00
Aevann1 202a8f80eb fds 2022-01-28 23:06:31 +02:00
Aevann1 0b3ddaf921 vcx 2022-01-28 22:55:59 +02:00
Aevann1 25d9419388 vcvc 2022-01-24 19:37:37 +02:00
Aevann1 0233c58a2e cxvxcv 2022-01-21 22:56:56 +02:00
Aevann1 81b4d603a5 fds 2022-01-19 12:07:11 +02:00
Aevann1 81078c5877 fds 2022-01-19 11:07:16 +02:00
Aevann1 c1ab1964e9 1 2022-01-19 10:42:38 +02:00
Aevann1 b5762b2e86 fv 2022-01-12 03:19:13 +02:00
Aevann1 5255ead466 closing2 2022-01-11 23:54:41 +02:00
Aevann1 24f71966be closing 2022-01-11 23:53:49 +02:00
Aevann1 293047492b fsdfds 2021-12-21 22:17:16 +02:00
Aevann1 f9f7d3c3f2 fdssfd 2021-12-21 16:47:38 +02:00
Aevann1 e24cea417e sfdfsdfsd 2021-12-11 19:23:09 +02:00
Aevann1 76ead80d6d fsdfsd 2021-12-05 21:45:08 +02:00
Aevann1 3b950cd93f dsffds 2021-12-02 20:27:41 +02:00
Aevann1 f9bf55b4b0 gfdgdf 2021-11-24 14:57:39 +02:00
Aevann1 83dcd2b198 fds 2021-11-02 13:33:36 -07:00
Aevann1 70c76a8cea 2nd 2021-10-26 23:11:14 +02:00
Aevann1 9c7878d7c9 fds 2021-10-20 01:43:11 +02:00
Aevann1 efa408ab2c fd 2021-10-15 16:08:27 +02:00
Aevann1 467a236456 fg 2021-10-03 21:18:02 +02:00
Aevann1 761c757f5c dfsfsd 2021-10-02 13:36:18 +02:00
Aevann1 731351e5a2 fsddsf 2021-09-19 15:11:34 +02:00
Aevann1 0e28116652 gf 2021-09-14 18:30:22 +02:00
Aevann1 6088337b4a fd 2021-09-14 18:29:17 +02:00
Aevann1 1131cda5dd fd 2021-09-03 16:09:31 +02:00
Aevann1 ef1deafbe3 dffd 2021-09-03 16:08:32 +02:00
Aevann1 8298c4522c fdfd 2021-08-19 07:49:50 +02:00
Aevann1 49eaa721ce fddf 2021-08-19 07:48:38 +02:00
Aevann1 1ce5e63961 dfdf 2021-08-14 23:33:41 +02:00
Aevann1 7e76d21ac0 fd 2021-08-11 19:01:19 +02:00
Aevann1 4af2ce2a53 fddf 2021-08-04 17:35:10 +02:00