Commit Graph

2656 Commits (ab41db22b77a211e89e2b88a63a342f285d79868)

Author SHA1 Message Date
Aevann1 1ab3835a09 add .host and .art 2022-11-22 23:20:24 +02:00
Aevann1 4640abed4b remove hole nerf 2022-11-22 22:25:48 +02:00
Aevann1 5f628d7c41 move purge_files_in_cache to the bottom 2022-11-22 17:49:15 +02:00
justcool393 b0ff8916a5
win loss stats to casino games (#475)
* casino: add stats to casino

* casino: stats should target the right thing
casino: properly style

* pluralize properly

* refactor casino leaderboards :marseytroublemarker:

* fsfsdsd

* fsdsdsdsd

* i'm r-slurred

* -
2022-11-22 07:11:01 -08:00
Snakes b8a3c8ea96
assetcache: include js/vendor dir. 2022-11-21 19:02:39 -05:00
Snakes adeb7acb38
archive_url: suppress errors on remote failure.
ghostarchive has been giving us 500 backs lately. They are making
an absolute mess of the log for a non-central, opportunistic feature,
and we already eat exceptions for archive.org. We merely extend that
to ghostarchive.
2022-11-21 18:52:21 -05:00
justcool393 272e2ee936
sneed (rename procoins to marseybux) (#472)
* sneed (rename procoins to marseybux)

* literally unusable

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 18:08:29 -05:00
justcool393 9cf1c026b3 remove checks that are needful 2022-11-21 15:51:47 -06:00
justcool393 6ea052b98a roulette: only check greenness where needful 2022-11-21 15:36:38 -06:00
Snakes 94e0e2fb5d
Extend ghost award prohibition to HOUSE_AWARDS. 2022-11-21 16:25:47 -05:00
Aevann1 f272989735 Revert "stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH (#473)"
This reverts commit 88f3cd519d.
2022-11-21 19:37:38 +02:00
Aevann1 88f3cd519d
stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH (#473)
* test

* bleg

* remove User.newtab and see if anyone complains (#471)

* fddf
2022-11-21 07:14:26 -08:00
justcool393 4d096a5bb6 make roulette cute and valid python syntax 2022-11-21 09:10:41 -06:00
justcool393 9f51259ee6
[DO NOT MERGE] roulette 0 and 00 bets redux (#470)
* backend support for roulette betting on 0 and 00

* casino: roulette: add 0 and 00 frontend

* add spacer

* roulette: fix the thing

* don't payout where needful not to

* sanity check

* roulette: validate requests properly

* roulette actions from API make more sane
2022-11-21 06:44:16 -08:00
Snakes 0095012e02
Fix offsitementions erroring on AEVANN_ID.
Also re-wrap the string literals for soft ruler 80, hard ruler 100.
Who are you people who read code with word wrap enabled.
2022-11-21 00:58:17 -05:00
gooseman 81682c7a28 mdns chads cant stop winning 2022-11-20 16:41:45 -08:00
Aevann1 caabaf0c6f expand IS_LOCALHOST 2022-11-21 00:16:49 +02:00
Aevann1 35f6b39d27 build imagemagick from source again 2022-11-20 23:35:09 +02:00
Aevann1 bb8877a5d3 dont send me offsitemention notifs 2022-11-20 18:33:16 +02:00
Snakes 23ff5450d6
Rename ranking constant by Capy request. 2022-11-20 06:31:16 -05:00
Snakes db329f487f
User.pay_account everywhere, fix lottery payout. 2022-11-20 05:50:02 -05:00
Snakes f5563900ae
Un-nerf schizohole in rankings. 2022-11-19 21:19:06 -05:00
Aevann1 5288d7a7dc remove android app and replace with instructions on how to install PWA 2022-11-20 00:04:08 +02:00
Aevann1 d2ac8348dc update app to v2.8 2022-11-19 23:18:25 +02:00
Aevann1 6b5a71c62e use imagemagick 7.1.0-52 instead of 6.9.11-60 (seems to have fixed the issues of images doubling in size) + don't recompress images that are already webp -- WARNING I HAVE NO IDEA WHAT IM DOING 2022-11-19 21:55:07 +02:00
Aevann1 2b81c4b03c Revert "Revert "sneed" (this is supposed to be like this)"
This reverts commit 5e773f9e75.
2022-11-19 14:49:10 +02:00
justcool393 3fe1d196f1 newline at end of file 2022-11-19 06:48:42 -06:00
justcool393 5e773f9e75 Revert "sneed" (this is supposed to be like this)
This reverts commit b5aefda124.
2022-11-19 06:45:54 -06:00
Aevann1 2362afa622 make the youtube code in sanitize be like the youtube code in posts.py 2022-11-19 06:44:07 -06:00
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
Aevann1 bcfe98c295 remove hole pins when post moved 2022-11-18 21:58: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 532ebd3ac8 standardize g.db behavior 2022-11-15 17:39:00 +02:00
Aevann1 f1288ba991 fix https://rdrama.life/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3080531?context=8#context 2022-11-15 17:29:45 +02:00
Aevann1 aeb10e1ec6 exclude /r/SubSimGPT2Interactive 2022-11-15 16:44:08 +02:00
Aevann1 8c849bef65 add 2 more boosted sites 2022-11-15 16:33:20 +02:00
Snakes b50a815eb0
Fix DB session for webm_to_mp4. 2022-11-15 06:24:17 -05: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 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
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
Snakes 4aedbc9b2e
Fix imports for sub move frontlist invalidation. 2022-11-14 04:14:41 -05:00
Aevann1 e83be235ba delete frontpage cache when moving posts 2022-11-14 07:49:23 +02:00
justcool393 84d9ed6655 antispam: sanity check 2022-11-13 21:48:52 -06:00
Snakes b5b8b2927c
Expand blackjack handling pipeline. 2022-11-13 21:43:26 -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
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 d3f25739f0 Fix ratelimit_user on 3 routes, make proper dec. 2022-11-13 07:25:57 -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 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
justcool393 f63237a9a2 fix ratelimit user to work with apps 2022-11-13 02:36:36 -06:00
justcool393 aa272729f1 default ratelimit and default ratelimit slower 2022-11-13 00:43:47 -06:00
justcool393 1e25421ac9 fixed deduplication and changed to 30/minute per @TLSM 2022-11-13 00:20:19 -06:00
justcool393 80d7d5281d ratelimit_user() wrapper 2022-11-13 00:07:15 -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 3569c06ce2 add .video 2022-11-12 05:05:08 -06: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 3ff9cd448f adjust babe97e6d8 2022-11-12 11:29:08 +02:00
justcool393 dd3c8c6a32 visual fix: 37 is 00 but users don't know that 2022-11-12 03:09:42 -06:00
Aevann1 0796a17422 switch from hcaptcha to turnstile 2022-11-11 20:34:06 +02:00
Aevann1 9147427996 do what snekdaddy said 2022-11-11 20:01:23 +02:00
Aevann1 d5ab813499 dont give offsite notifs from redditors with "Bot" in the name 2022-11-11 19:18:41 +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
justcool393 0cf37cfe5f fix for worker timeout 2022-11-11 04:19:44 -06:00
justcool393 f5912bb4cc we don't need bloody bs4 to get a bloody title 2022-11-11 04:19:43 -06: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
official-techsupport babe97e6d8
Add Carp's quote to Snappy on CC posts (#443) 2022-11-11 03:45:28 -05:00
justcool393 dc5481128d very important change 2022-11-10 23:27:52 -06:00
Snakes 803ce06712
Sanitize more intermediate values.
Frankly, this is almost entirely speculative. I don't see any viable
exploits through either of these codepaths. But automated tooling
doesn't see the implicit constraints on these values, so might as well
do more sanitization.
2022-11-10 23:17:25 -05: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 c066227d2b remove pizza autovote 2022-11-09 23:27:16 +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
Snakes 4f849c2c36
Fix userpage hat counter showing equipped.
Essentially, just needed to not reuse owned_hats.
2022-11-09 10:32:14 -05:00
Snakes ebb3957f41
Eager load submission listing relationships. 2022-11-09 09:16:22 -05:00
Snakes f1ceb5b079
Respect upper bound on award quantity. 2022-11-09 04:15:19 -05: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 9f1061fedb fix clearing cf cache 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 09d14aca47 revert linefeed change on fish's request 2022-11-07 22:49:54 +02: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
Snakes 7462477719 Owoify: exclude 'the' ↦ 'teh' replacement. 2022-11-07 02:23:15 -05: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
justcool393 0fffa7efc0 rename truecoins to truescore 2022-11-06 23:04:34 -08:00
Aevann1 9b939b30a4 Revert "fixed 500"
This reverts commit ee4c534a92.
2022-11-07 08:09:04 +02:00
Aevann1 5ee7eac502 fix root cause for 500 2022-11-07 08:08:53 +02:00
justcool393 ee4c534a92 fixed 500 2022-11-06 23:59:49 -06: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 657c00244a sanitize, fix bug with update_flag, and update copy for low tsfriends 2022-11-06 20:06:37 -08:00
justcool393 502314ad3c colors: filter properly 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
Aevann1 fbddf3e59c fix snappy gambling 2022-11-07 02:08:50 +02:00
Aevann1 bbfb18da9a change clearing cache terminology 2022-11-06 07:28:47 +02:00
justcool393 1d85fbe470
errors: exempt WPD from cutesy error messages 2022-11-06 00:25:22 -05:00
Snakes 38c3ba3889 Fix hole inactivity deletion to include subactions. 2022-11-06 01:08:24 -04: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 0e7a7307e4 stats: add time
this is useful for knowing what anchor point stats is bound to
2022-11-05 19:15:13 -05:00
justcool393 3343b8487d stats: rename `comments last_24h` to `comments last 24h` 2022-11-05 19:01:18 -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
Aevann1 5efdc43be5 fix 500 errors JC caused with a completely unnecessary refactor 2022-11-05 16:14:52 +02:00
justcool393 927e5a7cee snappy: fix weird missing line 2022-11-05 02:19:57 -05: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
Aevann1 299dbceeeb only add reason if there's a reason 2022-11-05 04:48:04 +02:00
Aevann1 f37707805e fix lawlz flair 2022-11-05 04:24:33 +02: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 3f457333b5 profanity: per fish request disable profanity filter everywhere but rdrama
feel free to revert this or whatever if discussed
2022-11-04 08:43:59 -05: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 bf448a557e fix *another* 500 2022-11-03 18:22:47 -05:00
justcool393 bed478276d fix carp 500 2022-11-03 18:21:24 -05:00
justcool393 23c5a2ddb5 handle case where is None 2022-11-03 18:14:55 -05:00
justcool393 118a58c104 fix matches (PCRE uses weird 1 indexing) 2022-11-03 18:11:22 -05:00
justcool393 c6b1d90dd8 fix 500... again 2022-11-03 18:05:11 -05:00
justcool393 731c0cc83c fix 500 and add r*pe to the bad words filter 2022-11-03 18:03:30 -05:00
justcool393 5f8a27636e fix prev commit 2022-11-03 18:01:12 -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
Snakes a310d43b10
Fix DMs not checking blocks. 2022-11-02 16:23:01 -04: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 bd779abc6e go back to the old TLD system in sanitize 2022-11-02 09:08:02 +02:00
Aevann1 f73c6d46df accomodate rdrama.com users 2022-11-02 08:31:04 +02:00
Aevann1 086643bf79 give_monthly_marseybux_task fixes 2022-11-02 08:19:25 +02:00
Aevann1 a2eaece906 verify patron level before giving monthly marsybux 2022-11-02 07:54:38 +02:00
Aevann1 1c536de93d add commas to stats 2022-11-02 07:06:01 +02:00
Aevann1 17038e31da remove 2 useless stats that took 3 and 9 seconds respectively 2022-11-02 06:59:23 +02:00
Aevann1 0008acbabe make /stats slightly faster 2022-11-02 06:50:18 +02:00
Aevann1 d575abe1a7 Revert "debug /stats"
This reverts commit daf5fd9359.
2022-11-02 06:45:17 +02:00
Aevann1 daf5fd9359 debug /stats 2022-11-02 06:32:38 +02:00
Aevann1 7a103d5143 fix 500 error 2022-11-02 05:23:46 +02:00
justcool393 69f3db9d27 marsify: fix marsify message 2022-11-01 20:12:52 -05:00
justcool393 26e134793a newlines make @TLSM happy 2022-11-01 19:00:03 -05:00
justcool393 6caebac946 actions: move user-only actions to useractions, which gets rid of a circular dependency 2022-11-01 18:46:56 -05:00
justcool393 cd33fa9046 slots: fix numerous bugs with slots
slots: fix missing imports (x2)
slots: fix other user errors being returned to a potentially completely unrelated user

for example if Snappy was under the rehab effect and it pulled the slot, it'd abort and potentially cause other bugs down the chain, which makes no sense to a user or could leave a post in a wonky state
2022-11-01 18:03:53 -05:00
Aevann1 da5cc4093f make snappy gamble again 2022-11-02 00:40:22 +02: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
Snakes c95f5a537a
Fix "Copy link" action not including domain. 2022-11-01 06:06:45 -04:00
justcool393 6d636e4e42 use charge_account everywhere 2022-11-01 00:25:19 -05:00
Aevann1 972578e74a allow poetrysperg to skip the linefeeds thing 2022-11-01 02:04:37 +02:00
Aevann1 7eaf257ca0 add 2 extra boosted domains 2022-10-31 22:33:06 +02:00