Commit Graph

965 Commits (12881388d6f46a916c25fbb8d80fcbabb3b71c52)

Author SHA1 Message Date
justcool393 d1197bac82 chat: sanitize raw body 2022-11-16 08:00:04 -06:00
justcool393 f1bfb87243 chat: permission for mute bypass 2022-11-16 07:00:03 -06:00
justcool393 1565d9ca26 use abort(410) instead of the old message.html template 2022-11-15 23:32:57 -06:00
justcool393 3d7737387c use default config vlaue const everywhere 2022-11-15 10:55:00 -06:00
Aevann1 8c849bef65 add 2 more boosted sites 2022-11-15 16:33:20 +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
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
justcool393 271977cc6f remove ghost cost 2022-11-14 11:22:10 -06:00
justcool393 000b4f4c37 can post in ghost threads 2022-11-14 11:20:34 -06: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
justcool393 39e7e61bcb posts: make ghost threads cost DC again
who the hell disabled this
2022-11-13 19:52:32 -06: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
Snakes dd912addd1
chat: allow dev envs, clarify error message. 2022-11-13 06:43:08 -05: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 aa272729f1 default ratelimit and default ratelimit slower 2022-11-13 00:43:47 -06:00
Aevann1 983e8b21d1 update android app 2022-11-12 19:56:54 +02:00
Aevann1 eca45ecf16 update app url 2022-11-12 16:47:12 +02:00
justcool393 8d1052105e consistency 2022-11-12 03:39:05 -06:00
justcool393 619c0c837f keep yourself safe 2022-11-12 03:38:38 -06:00
Aevann1 0796a17422 switch from hcaptcha to turnstile 2022-11-11 20:34:06 +02:00
Aevann1 1a2138004d ping idio whenever telegram is mentioned 2022-11-11 17:34:20 +02:00
Aevann1 05b7e79b76 remove the code i added for rdrama.com 2022-11-11 15:52:18 +02:00
Aevann1 0a21411ee8 make "cocky" not get switched to "peepeey" 2022-11-11 11:41:07 +02:00
Aevann1 f07bb9e4c5 add lawlz to ping list 2022-11-11 11:32:54 +02:00
Aevann1 31edfa61f3 add transgirltradwife to boosted users 2022-11-11 11:31:32 +02:00
justcool393 dc5481128d very important change 2022-11-10 23:27:52 -06:00
Snakes 8ab77eb0ee Disable non-cosmetic awards on ghost posts.
Per poll result: https://rdrama.net/post/79285/-/3049889
Permits cosmetics and pin/unpin to be used; disables all others.
2022-11-09 18:07:23 -05:00
Aevann1 867f129b35 remove pizza-autovote leftovers 2022-11-09 23:28:45 +02:00
Aevann1 922a8e09c4 add /h/changelog to boosted holes 2022-11-09 23:07:46 +02:00
Aevann1 5cc833cf7a boost sneks and jc 2022-11-09 23:06:38 +02:00
Aevann1 41e39a5c35 add impassionata to ping list 2022-11-09 22:59:10 +02:00
Aevann1 e40c9014c2 add pizza to boosted_users 2022-11-09 22:54:41 +02:00
Aevann1 d85ac23c3c add BOOSTED_USERS 2022-11-09 22:53:24 +02:00
Aevann1 9e6324d7ca remove ajax.cloudflare.com from CSP 2022-11-09 21:49:50 +02:00
Aevann1 321f32da34 add pizzashill to ping list 2022-11-09 21:13:34 +02:00
Aevann1 282762bef8 increase vamp award duration from 1 day to 2 days (but dont advertise that this time) 2022-11-09 21:09:38 +02:00
Aevann1 4f491d5ef7 reduce chud award cost from 2500 to 1000 (but not advertising that this time) 2022-11-09 21:08:25 +02:00
Aevann1 c8b4947fa4 tweak rdrama algo 2022-11-09 21:02:17 +02:00
Aevann1 d545548139 add 2 more boosted domains 2022-11-09 19:17:25 +02:00
justcool393 ffd9c73566 reduce slur filter down to necessary ones and partially implement what fish wants (closes #432)
signed off by snekfriend
2022-11-09 00:05:56 -06:00
justcool393 26549a6e66
remove logged out routes (#433)
* remove /logged_out/ routes

* update sitemap, remove users route, and update header

* cloudflare cookie

* only mess with the cookie whenever we desire auth

* sitemap: (small) improvements
sitemap: fix little bug i introduced
sitemap: fix login redirects for /id/ routes

* sitemap: remove duplicate entry

* contact is auth desired

* imports: don't import what we don't need and bind late to the db

* praying to god this works

* keep yourself safe

* oh i actually need to commit and push lol

* import Sub

* t

* refix cache purger
2022-11-09 00:35:24 -05:00
Aevann1 c76bfa5ffc fix 3 permapin limit not working 2022-11-08 11:41:16 +02:00
Aevann1 d146c595dd add 2 more boosted sites 2022-11-08 10:08:10 +02:00
Aevann1 f2b4c527a4 amerikkka -> ameriKKKa 2022-11-08 06:26:35 +02:00
Snakes c712fb4b9d
WPD: add POLL_THREAD. 2022-11-07 17:00:37 -05:00