Commit Graph

21032 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
SneedBot 4a05910161 sneed 2022-11-14 22:27:45 +00:00
Snakes 2d6cb193c0
Audio post minor improvements.
- Make clear on post submission that users can upload audio.
 - Fix a missing closing </div> that was breaking submission.html
   on audio posts.
2022-11-14 17:26:39 -05:00
justcool393 2b733e667e make 429 less bitchy on WPD 2022-11-14 13:24:30 -06:00
justcool393 893d968950 errors: make WPD errors less bitchy 2022-11-14 13:23:45 -06:00
justcool393 239b9c30b4 wpd: fix 413 2022-11-14 13:16:38 -06:00
Aevann1 7db62212e0 change shirt color in megathread index 2022-11-14 21:06:04 +02:00
Snakes 80953c698e
PCM: add banners to rotation. 2022-11-14 12:44:30 -05:00
Aevann1 0b44e4f41e restore v2.6 version of the app for rdrama 2022-11-14 19:32:57 +02:00
justcool393 c9ecb5d535
account linking improvements (#448)
currently account delinking is very messy and can sometimes just not work
we do codey stuff so it's not as bad
also we create a pretty page for mops to mop up borked account links

* alts: allow proper delinking

* fix prev commit

* url fix

* fix 500

* fixes

* :pepodrool:

* flag

* :pepodrool: redux

* sdsdsdsds

* correct endpoint

* fix html page

* alts: only adjust session history if flag is set

* fix 500

* allow relinking

* fsdsds

* :pepodrool: redux

* alts: don't fail if an alt isn't history

* use postToastSwitch + some API changes

* remove unnecessary variables

* d-none

* delink accounts mod action

* fa-link-slash

* alts: add form to create alt

* remove copied and pasted template

* rounded section

* UI improvement + fix

* \n

* fix status

* admin: remove duplicate route
admin: do a permissions check on 2 pages that need it
admin: set the manual flag for manually flagged alts

* variable change

* fix 500

* alts

* add shadowban icon to alt link tool

* shadowbanned tooltip

* add user info section

* fix 500, remove unnecessary form, and add alt votes button

* trans and also link to page

* margin

* sdsdsd

* stop the count

* fix prev commit

* with ctx

* plural

* alts

* don't show shadowbanned users to those who can't see them
this is... extremely rare and won't ever be seen in production however if perms were ever rearranged in the future, this keeps permissions correct

* shadowban check in alt list

* let shadow realm enthusiasts see shadowban alts

* sdsdsds

* test

* be graceful where needed

* sdsdsdsds

* alts: don't allow adding the same account
alts: clarify wording

* rename and reorder on admin panel

* EOL

* remove frankly unnecessary check

* try with a set

* test

* Revert "try with a set"

This reverts commit 72be353fba5ffa39b37590cc5d3bf584c94ee06e.

* Revert "Revert "try with a set""

This reverts commit 81e41890a192e8b46d0463477998e905fddf56ba.

* Revert "Revert "Revert "try with a set"""

This reverts commit be51592135a3c09848f993f0154bd2ac862ae505.

* clean up test
2022-11-14 12:32:13 -05:00
Aevann1 65e555692a
fix: requirements.txt to reduce vulnerabilities (#450)
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-3113904

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2022-11-14 19:25:13 +02:00
Aevann1 3ffff92f63
fix: requirements.txt to reduce vulnerabilities (#449)
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-3113904

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2022-11-14 19:24:57 +02:00
justcool393 271977cc6f remove ghost cost 2022-11-14 11:22:10 -06:00
justcool393 cbe328e933 submit thing 2022-11-14 11:20:34 -06:00
justcool393 000b4f4c37 can post in ghost threads 2022-11-14 11:20:34 -06:00
Aevann1 2ab126ef33 adjust "mute" and "unmute" margins to accomodate switching 2022-11-14 19:06:59 +02:00
Aevann1 2c1b064b0a remove rarely-used profanity filter entry 2022-11-14 18:14:47 +02:00
Aevann1 1375372dfc remove redundant slur filters (the "fuck" one affects all conjugations n-word) 2022-11-14 18:14:47 +02:00
Aevann1 41ab1f313c move feature_required wrappers up 2022-11-14 18:14:47 +02:00
justcool393 d3aea510f8 remove base 36 crap 2022-11-14 10:10:16 -06:00
Snakes 4aedbc9b2e
Fix imports for sub move frontlist invalidation. 2022-11-14 04:14:41 -05:00
SneedBot 377c31371f sneed 2022-11-14 07:43:53 +00:00
Aevann1 58c4db0399 change casino ratelimit 2022-11-14 08:20:19 +02:00
Aevann1 ac8c1d524d "moved into cc" -> "marked as cc" 2022-11-14 07:49:23 +02:00
Aevann1 e83be235ba delete frontpage cache when moving posts 2022-11-14 07:49:23 +02:00
Aevann1 dc23016f17 fix capitlization 2022-11-14 07:49:23 +02:00
justcool393 1ae4613d6d remove bug 2022-11-13 22:03:51 -06:00
justcool393 df992db1db signups: notify me on signups 2022-11-13 22:01:02 -06:00
justcool393 84d9ed6655 antispam: sanity check 2022-11-13 21:48:52 -06:00
justcool393 79e6d237c1 fix shadow API leak 2022-11-13 20:52:46 -06:00
Snakes b5b8b2927c
Expand blackjack handling pipeline. 2022-11-13 21:43:26 -05:00
Snakes 6169c02c89
Fix f6dea300b for logged-out users. 2022-11-13 21:12:08 -05:00
justcool393 7c0763d81f blackjack fixes 2022-11-13 20:07:13 -06:00
justcool393 39e7e61bcb posts: make ghost threads cost DC again
who the hell disabled this
2022-11-13 19:52:32 -06:00
justcool393 c5bf7b33c5 add created_utc 2022-11-13 18:21:19 -06:00
Snakes cc8f2d1a6e
Restrict permabanned editing content. 2022-11-13 19:00:55 -05:00
Snakes 188923a908
Change schizocel NOTIFIED_USERS (by request).
This is like 35 pings a day on average, but he seems to think it's
what he wants.
2022-11-13 17:39:02 -05:00
carp 91e19193c8
Conjugations of fuck (#446)
fixed
2022-11-13 17:18:22 -05:00
SneedBot 0f4b9fa65b sneed 2022-11-13 22:17:15 +00:00
Snakes f6dea300b0
Adjust shadowed comment visibility.
- Don't show shadowed comments to non-jannies in notifications.
- Auto-collapse for jannies in notifs/threads.
2022-11-13 17:13:14 -05:00
justcool393 994ca902ca uploads: fix paste to upload on firefox 2022-11-13 08:16:42 -06:00
SneedBot 9624ae2b5d sneed 2022-11-13 12:26:16 +00:00
Snakes d3f25739f0 Fix ratelimit_user on 3 routes, make proper dec. 2022-11-13 07:25:57 -05:00
justcool393 24678ab7af reorder buttons per pool 2022-11-13 06:18:09 -06:00
Snakes dd912addd1
chat: allow dev envs, clarify error message. 2022-11-13 06:43:08 -05:00
justcool393 d7f07dcd67 chat: allow club users into chat as well 2022-11-13 05:37:53 -06:00
justcool393 681d8b482a chat: impose truescore chat limit 2022-11-13 05:31:48 -06:00
justcool393 bf98444ead push notifications: fix pusher causing errors on large unicode msgs 2022-11-13 05:12:05 -06:00
justcool393 f4f03f6582
all seeing eye: rework reddit notifs a bit (#445)
* all seeing eye: rework reddit notifs a bit
this should be more reliable and catch more of these when they're sent

* fix reddit notifs to properly use fewer queries
2022-11-13 06:00:05 -05:00
Snakes 8fee66c894
Reorder decorators to support f63237a9a2.
Ultimately necessary because otherwise all bots share rate limits
with each other. The somewhat haphazard ordering of decorators bothers
me, but it's functionally required.

Approaches using request context (like reading the Authorization
header in ratelimit_user) likely produce bugs all their own.
2022-11-13 05:18:52 -05:00