Commit Graph

1019 Commits (a3fa96242cecc298e3f3a303ab68cfe8bce9c0c5)

Author SHA1 Message Date
Aevann1 b5aefda124 sneed 2022-11-19 06:44:07 -06:00
justcool393 e54e31052a add tildes.net to boosted sites 2022-11-19 06:44:07 -06:00
Aevann1 3cd1734390 stop spamming the console 2022-11-18 23:08:12 +02:00
justcool393 255d5b2453 security: fix mute bypass
modmail: constantify user ID
2022-11-17 16:50:06 -06:00
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
Aevann1 f34c70c479 add 1 slur filter 2022-11-07 12:48:50 +02:00
Aevann1 8f59ab648a add 3 more boosted sites 2022-11-07 09:27:10 +02:00
Aevann1 fd6176a948 remove "gosh" 2022-11-07 09:12:03 +02:00
Aevann1 7a8605ee4b small change to slurs 2022-11-07 09:11:49 +02:00
Aevann1 5ee7eac502 fix root cause for 500 2022-11-07 08:08:53 +02:00
Aevann1 a66add3897 make profanity filter actually usable 2022-11-07 07:35:20 +02:00
Aevann1 1adb6bf5f8 remove too estoric slurs 2022-11-07 07:21:34 +02:00
justcool393 a6227748a2 remove unused jinja constant 2022-11-06 20:06:37 -08:00
justcool393 cac2ef3160 patronage text 2022-11-06 20:06:37 -08:00
justcool393 d0462a1cc1 fix links for WPD 2022-11-06 20:06:37 -08:00
justcool393 4d2f429954 enable permanence code and fix some bugs with setting frontsize and some other things 2022-11-06 20:06:37 -08:00
justcool393 83fe77c039 settings: implement backend logic for permanent filters 2022-11-06 20:06:37 -08:00
justcool393 272e79b529 enable feature flag on testing environment 2022-11-06 20:06:37 -08:00
justcool393 72da55fd61 settings: implement front end for perma-filters 2022-11-06 20:06:37 -08:00
justcool393 3a989356dd sorts and stuff 2022-11-06 20:06:37 -08:00
justcool393 32607ad058 settings: some changes and additions
settings: add theme
settings: move common controls to common
settings: add some consts
2022-11-06 20:06:37 -08:00
Snakes 1eaebd2ea1
Extend special API comment display to bussy-bot. 2022-11-06 19:49:50 -05:00
justcool393 1d85fbe470
errors: exempt WPD from cutesy error messages 2022-11-06 00:25:22 -05:00
Snakes 9f7adb2614
Fix recent CPU spikes from image encoding.
Certain animated images take an exceedingly long time (~minutes) to
encode to WEBP using method=6. Such a file was obtained, and it
encoded significantly faster using method=5 and somehow turned out
smaller than the result generated with method=6. We switch now to
use method=5 so we stop getting occasional massive increases in
CPU load when multiple users upload animations at the same time.

Additionally, a timeout was added to the ImageMagick subprocess just
in case there are even more pathological files in the future. Better
to error out than have to get someone to kill the process.
2022-11-06 00:48:54 -04:00
justcool393 84f3805aa6 don't use periods in profanities 2022-11-05 19:16:29 -05:00
justcool393 67189af6ec add palestinian 2022-11-05 18:34:04 -05:00
carp f03a34b308 filter and error message updates
removed unnecessary \W nonsense from profanity filter wherever possible, covered verb conjugations that could lead to spelling errors when filtered, added a few new rdrama-specific slurs filters, touched up a few error messages
2022-11-05 16:20:52 -07:00
Aevann1 d76fe63c7f constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
justcool393 c6675ff037 houses: make price a constant
houses: warn founders that switching houses will delete their founder status
2022-11-05 01:00:02 -05:00
justcool393 0943ee064c rename is_cosmetic to cosmetic 2022-11-04 21:22:30 -05:00
justcool393 81ed8cfc81 awards: make cosmetic awards give 10% of the price to the recipient 2022-11-04 21:16:23 -05:00
Aevann1 47b89df619 change the chud theme terminology to a verb instead 2022-11-05 04:12:21 +02:00
Aevann1 bb6173f899 fix profanity filter 2022-11-04 20:48:52 +02:00
justcool393 d2cb3caa54 revert prev commit 2022-11-03 22:54:14 -05:00
justcool393 0f462ba951 remove duplicate ping 2022-11-03 22:53:44 -05:00
justcool393 3301feb1a1 fix women who love women 2022-11-03 20:59:10 -05:00
justcool393 efceebf730 fix issue when you type in clbackside 2022-11-03 20:57:59 -05:00
justcool393 48f47935d6 nigga -> neighbor 2022-11-03 19:28:05 -05:00
carpathianflorist 87071b927c slur, profanity, shibboleth upgrade
xoxo carp
2022-11-03 16:59:38 -07:00
justcool393 12fbe686d5 don't use regex in the slur filters for now
it doesn't work
2022-11-03 18:33:56 -05:00
justcool393 731c0cc83c fix 500 and add r*pe to the bad words filter 2022-11-03 18:03:30 -05:00
justcool393 339d5fe8f1 users: add profanity filter to censor our gosh darned potty mouthes 2022-11-03 17:59:18 -05:00
Aevann1 6b068de522 remove insane bloat 2022-11-03 21:23:37 +02:00
Aevann1 07a12380de accomodate alt domain 2022-11-03 17:29:14 +02:00
Aevann1 f151e2accd stop fucking messing with my code, I had it at "4" for a reason 2022-11-03 17:24:30 +02:00
justcool393 753178a186 subs: fix exile behavior 2022-11-02 19:47:07 -05:00
justcool393 de30ee0ed4 kys 2022-11-02 14:33:31 -05:00
Snakes ee315f236b
Revert "reduce chud award price from 2500 to 500"
This reverts commit e794eb93a7.
2022-11-02 15:20:26 -04:00
Aevann1 f73c6d46df accomodate rdrama.com users 2022-11-02 08:31:04 +02:00
justcool393 69f3db9d27 marsify: fix marsify message 2022-11-01 20:12:52 -05:00
justcool393 02efc44682 pins: reintroduce bug/feature at @Aevann1's request
the old behavior was actually to let admins bypass the limit, but this was buggy when the new multi pin thing was added and wouldn't let jannies make permapins if pins were at the limit
to make the code clear though, the permission name has been changed
2022-11-01 15:14:11 -05:00