Commit Graph

4389 Commits (bc4d5cfe5d4a9d27a1b2f216247c69b6dee5d051)

Author SHA1 Message Date
Aevann bb7192c929 rename over_18 to nsfw 2023-10-05 13:19:50 +03:00
Aevann 978399ff10 fix 500 errors 2023-10-05 13:14:59 +03:00
Aevann 24e57db432 lazy is only a thing for properties 2023-10-05 13:12:53 +03:00
Aevann 019621490a refactor can_see and use it more 2023-10-05 13:09:58 +03:00
Aevann 51a23a96cf fix 500 error 2023-10-05 13:05:20 +03:00
Aevann 74587b12da use can_see_shadowbanned 2023-10-05 12:44:42 +03:00
Aevann 9dc48c7acf make sure to hide ALL autojanny notifs generated by shadowbanned-cels from non-jannies 2023-10-05 11:43:52 +03:00
Aevann 99a3aba578 fix notifs 2023-10-05 10:38:35 +03:00
Aevann 757e7ed96b Revert "use NOT_IN_CODE_OR_LINKS" - causes TIMEOUTS
This reverts commit 282f2c9588.
2023-10-05 10:29:41 +03:00
Aevann c43e4c0f7d same as last commit 2023-10-04 22:45:18 +03:00
Aevann 4da6fadae6 fix wrong syntax 2023-10-04 22:44:55 +03:00
Aevann 282f2c9588 use NOT_IN_CODE_OR_LINKS 2023-10-04 22:43:07 +03:00
Aevann 544adc4de6 allow jannies to get all kinds of notifs from shadowbanned users 2023-10-04 22:34:00 +03:00
Aevann 9a5b10bba3 remove homoween from localhost again 2023-10-04 19:58:46 +03:00
Aevann fc05cf4c80 add king award 2023-10-04 18:42:03 +03:00
Aevann 5c1a2ac7a1 18+ -> NSFW 2023-10-04 17:04:06 +03:00
Aevann d02f73b391 restore pumpkin award (im stupid) 2023-10-04 16:18:17 +03:00
Aevann 7fced29fba change wholesome award to emoji award 2023-10-04 16:05:43 +03:00
Aevann b24be481d7 new_name->new_flair, title->flair 2023-10-04 15:29:41 +03:00
Aevann 006415c4be enable homoween on localhost again 2023-10-04 13:52:18 +03:00
Aevann 8d539e6ff9 fix this https://rdrama.net/post/208836/the-bird-of-the-day-is/5101413#context crashing phones 2023-10-04 13:33:07 +03:00
Aevann d1f8162873 make deflector apply to "shit" and "unpin" award 2023-10-04 13:18:08 +03:00
Aevann 57841f00cf remove random.seed on all sites by devrama (potential exploit) 2023-10-04 12:56:28 +03:00
Aevann 0b3460d258 fix this https://rdrama.net/post/207814/reddit-adds-paid-upvotes-redditors-cope/5077139#context 2023-10-03 09:44:53 +03:00
Aevann c89ddab376 boost redscare.cafe 2023-10-03 08:26:59 +03:00
Aevann d148ebca95 mark marsify as negative 2023-10-02 18:21:56 +03:00
Aevann c061936b53 make award immunity only apply to negative awards 2023-10-02 17:24:09 +03:00
Aevann b38d15225f add carp response 2023-10-02 16:27:45 +03:00
Aevann edd07137f7 add end_utc to file orgies 2023-10-02 07:21:04 +03:00
Aevann 78d1d742d9 remove homoween from localhost 2023-10-02 05:58:28 +03:00
Aevann a5875f713e add LLM snappy quote 2023-10-01 17:46:34 +03:00
Aevann 8fd8a5ed9c put ghostarchive above archive.org (much more reliable) 2023-10-01 11:41:01 +03:00
Aevann ccf7a6d8a1 add missing commas 2023-09-30 00:28:50 +03:00
Aevann 02bb7da0c1 fix "Gnu/Linux" 2023-09-30 00:27:55 +03:00
Aevann bc8427d932 +18 -> 18+ 2023-09-29 23:57:58 +03:00
Aevann 2c649a97f8 fix cool slur filter 2023-09-29 23:56:47 +03:00
Aevann 43822b3322 add nsfw emojis 2023-09-29 10:15:29 +03:00
Aevann 20f2db34e9 make a comment like this embed https://rdrama.net/h/countryclub/post/207073/-/5059583#context 2023-09-29 09:27:59 +03:00
Aevann e0dc797ac8 allow deleting any snappy quotes, not just the last one 2023-09-29 09:26:46 +03:00
Aevann ac83bb7739 use flower crowns for queen award 2023-09-29 07:39:37 +03:00
Aevann a4071ba6b6 remove numbered lists generated by "1)" 2023-09-29 07:12:41 +03:00
Aevann 9ceb2aa937 fix "cooler" becoming "fetcher" 2023-09-29 06:51:41 +03:00
Aevann b74ba0a317 get rid of some TODOs 2023-09-29 06:19:51 +03:00
Aevann 2cbe73f272 apply homoween in localhost again 2023-09-29 05:59:05 +03:00
Aevann 10f4bf99ce minor slur filter improvement 2023-09-29 04:39:16 +03:00
Aevann 0455ad4910 capitalization consistency 2023-09-29 04:29:14 +03:00
Aevann 8e27789847 make sure to wipe stickied_utc too 2023-09-29 04:24:36 +03:00
Aevann dcbc5bd03c disable homoween on localhost so i can test other themes 2023-09-29 04:20:21 +03:00
Aevann dbb856bd70 embed live youtube urls https://rdrama.net/post/207580/critical-update-yale-rpe-student-takes 2023-09-29 04:11:13 +03:00
Aevann 9f7a761b73 homoween III + other random shit 2023-09-29 02:58:09 +03:00
Aevann f3de3b9ba0 do this https://rdrama.net/post/207264/wake-up-babe-two-parent-privilege/5063661#context 2023-09-28 01:22:59 +03:00
Aevann 620cb49ddd _delete_all_posts() before creating a new post 2023-09-27 01:19:45 +03:00
Aevann 46633a4529 dedup sql-escaping code 2023-09-27 01:12:01 +03:00
Aevann 3d110dd568 lstrip('@') 2023-09-27 00:40:12 +03:00
Aevann fb0b92364a fix /refresh_chat once and for all 2023-09-26 23:59:56 +03:00
Aevann 6c46de47de try smth on devrama to fix chat refreshing 2023-09-26 23:45:16 +03:00
Aevann 04c063bc0d fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/5053497#context 2023-09-26 21:09:37 +03:00
Aevann 19ba15140b fix ios video issue 2023-09-26 20:50:31 +03:00
Aevann eac1e94d58 reorder 2023-09-26 20:13:36 +03:00
Aevann cfab8408ac use ffmpeg-python (#209)
Reviewed-on: #209
2023-09-26 16:58:51 +00:00
Aevann bf77ca6532 fix this https://rdrama.net/post/206405/gigachadgigachadgigachad/5043805#context 2023-09-26 19:53:37 +03:00
Aevann 1574887f1d dynamically add new css and js folders to prevent human error 2023-09-26 19:17:42 +03:00
Aevann 568f66e070 dont show <img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain2:" title=":marseytrain2:" src="https://i.rdrama.net/e/marseytrain2.webp"> when its not rendered 2023-09-26 18:39:06 +03:00
Aevann 4f227e5c8b use POST instead of GET 2023-09-26 18:19:29 +03:00
Aevann 40c14f21f6 end orgy automatically and refresh chat page 2023-09-26 16:12:37 +03:00
Aevann 8eada5a5ac remove unnecessary code 2023-09-26 15:45:27 +03:00
Aevann c9f3b95f86 refresh chat automatically when orgy starts 2023-09-26 15:29:36 +03:00
top d0ef9768ed top/fix-split (#205)
Fixes the split issue, accidentally allowed split on suit instead of rank. Thought this was originally implemented [rank, value] not [rank, suit]. Well luckily this was built with a function for this

Co-authored-by: Chuck <dude@bussy.com>
Reviewed-on: #205
Co-authored-by: top <top@noreply.fsdfsd.net>
Co-committed-by: top <top@noreply.fsdfsd.net>
2023-09-26 10:00:20 +00:00
Aevann 4eef22692b fix :marseytrain: slur filter 2023-09-25 01:32:31 +03:00
Aevann d089d18e2d merge /chat and /orgy again 2023-09-25 01:12:42 +03:00
Aevann e998234a9e Revert "dedup"
This reverts commit e530767645.
2023-09-24 22:27:36 +03:00
Aevann e530767645 dedup 2023-09-24 22:25:57 +03:00
Aevann e23b528049 minor improvement 2023-09-24 22:25:12 +03:00
Aevann a0587a9503 fix longpostbot replies 2023-09-23 21:00:58 +03:00
Aevann 8fee9ba672 add a longpostbot reply 2023-09-23 21:00:58 +03:00
Aevann 824bac56d1 add 2 longpostbot replies 2023-09-23 20:51:34 +03:00
Aevann 28594e2506 better looking syntax 2023-09-23 20:51:34 +03:00
Aevann aa7d812cb6 dont stop orgy automatically cuz encore 2023-09-23 04:49:07 +03:00
Aevann 6a4bc9de47 fix 500 error when replacing "gAmer" 2023-09-22 20:06:13 +03:00
Aevann a9b078007e refactor slurs and profanities and put them in their own file 2023-09-22 20:01:30 +03:00
Aevann fa8b7eff02 improve slur filter 2023-09-22 19:36:11 +03:00
Aevann edc0f99c55 fix 7724fa88a7 2023-09-22 19:32:41 +03:00
Aevann bd6feec978 do this https://rdrama.net/h/chudrama/post/206086/-/5036401#context 2023-09-22 19:22:36 +03:00
Aevann 7724fa88a7 fix slur filter 2023-09-22 19:18:38 +03:00
Aevann 59e12605ab needful -> sneedful 2023-09-22 19:15:46 +03:00
Aevann ecac68340a remove slur-filtered girl phrase 2023-09-22 19:15:46 +03:00
Aevann 0cbcc6ba3f fix bug with cat slur filter 2023-09-22 10:11:09 +03:00
Aevann 85cf331ae1 add janny award discount of 2% per level, cap disccount at 45%, decrease benefactor given marseybux to 2000 2023-09-22 09:55:54 +03:00
Aevann 1649879a69 better solution to the transform question 2023-09-22 09:51:45 +03:00
Aevann 64f66347a1 add a monthly janny salary of 10k mbux per janny level 2023-09-21 23:17:45 +03:00
Aevann f35f495b17 add this https://rdrama.net/h/countryclub/post/79285/-/5029126#context 2023-09-21 23:02:12 +03:00
Aevann 249a9e685f do smth i missed in a previous commit 2023-09-21 22:37:29 +03:00
Aevann 8efb8de6cb rename a variable for clarity 2023-09-21 22:32:59 +03:00
Aevann cc44c09008 hopefully-unbreakable fix to the transform issue 2023-09-21 22:12:23 +03:00
Aevann 57033c2a23 increase IS_PERMA_PROGSTACKED on wpd to JL4 2023-09-21 21:13:10 +03:00
top aa9bbe06cd Skip multiple autojanny comment error (#204)
Error happens here where multiple autojanny comments are found on a new install, should probably be handled by deleting one of them 🤷. This at least allows new installs to work without some database tinkering

Co-authored-by: Chuck <dude@bussy.com>
Reviewed-on: #204
Co-authored-by: top <top@noreply.fsdfsd.net>
Co-committed-by: top <top@noreply.fsdfsd.net>
2023-09-21 18:09:39 +00:00
top 24eafc85d8 Adds some bug fixes QoL changes to the blackjack game. (#203)
Updates the wager text to show the wager for both hands instead of the original wager since splitting doubles the bet.

Adds the ability to split face cards/ten which is allowed in the rules most casinos (it's also universally terrible so idk why anyone would actually split 10s).

Adds the ability to double down on 9 as requested by annoyingthegoyim, probably increases EV a very small amount but not really noticeable since 9 is a pretty rare opening hand (and worse than double down on 10 or 11).

Moves the split button to after hit/stay since some users complained about splitting by accident due to button placement

Co-authored-by: Chuck <dude@bussy.com>
Reviewed-on: #203
Co-authored-by: top <top@noreply.fsdfsd.net>
Co-committed-by: top <top@noreply.fsdfsd.net>
2023-09-21 13:31:02 +00:00
Aevann 8a1243dd35 increase TRUESCORE_DONATE_MINIMUM on WPD to 100 2023-09-20 23:37:24 +03:00
Aevann c9e2179b05 make rerun post only pinned for 1 hour to reduce spam 2023-09-20 20:53:32 +03:00
Aevann f9b4d182b9 automate sunday rerun too 2023-09-20 20:52:39 +03:00
Aevann 0b15290ccf simpler fix to the transform exploit 2023-09-20 18:54:57 +03:00
Aevann c930c21004 move some shit out of const.py into regex.py 2023-09-20 18:43:00 +03:00
Aevann 577ca190be fix this https://rdrama.net/post/205335/potential-huge-drama-for-reddit-fricking/5016437#context 2023-09-20 18:41:17 +03:00
Aevann f79b44504b fix + improve heytroon's PR 2023-09-20 18:10:39 +03:00
Aevann 2355ea9f6a make CHUD_MSGS a tuple 2023-09-20 18:05:42 +03:00
HeyMoon c410b5b4d0 Add new chud msgs (#202)
yeah

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #202
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-09-20 15:01:03 +00:00
Aevann 1eabaca2c1 use search-new + unify reddit profile url 2023-09-18 21:26:21 +03:00
Aevann 03e9c5bc1e fix bug 2023-09-18 21:18:08 +03:00
Aevann f0a5349519 Revert "Revert "Adds blackjack split (#197)""
This reverts commit 9daa939cae.
2023-09-18 19:31:58 +03:00
Aevann bb87673a90 restore transform without "scale" 2023-09-18 19:28:12 +03:00
Aevann d314506fbf fix error in get_mentions 2023-09-18 14:47:06 +03:00
Aevann 5347f58382 fix 500 error 2023-09-18 14:40:29 +03:00
Aevann 0b375b2269 boost /h/traps 2023-09-18 14:36:07 +03:00
Aevann a1f3b11fa6 dont filter based when preceded by a - 2023-09-18 14:32:53 +03:00
Aevann be8cc7643f boost forum 2023-09-18 14:32:30 +03:00
Aevann a94171f1e7 Update files/helpers/media.py 2023-09-17 23:03:38 +00:00
Aevann 60580cc6fa add orgy icon 2023-09-17 23:58:08 +03:00
Aevann ac6a71223d fix mp3 songs 2023-09-17 23:14:41 +03:00
Aevann c8a3a5a569 prevent malicious use by excluding user subreddits 2023-09-17 22:56:00 +03:00
Aevann 2c1fecc724 based -> keyed 2023-09-17 22:40:35 +03:00
Aevann c5511541d5 apparently s_urls are a thing in profile posts too https://rdrama.net/post/204924 2023-09-17 22:33:57 +03:00
Aevann e53eb20084 fix this https://rdrama.net/post/204734/reddit-admins-decide-the-best-path/5002037#context 2023-09-17 22:23:08 +03:00
Aevann 73618fa2c2 remove coon slur filter for funny wootfatigue interactions 2023-09-17 21:55:13 +03:00
Aevann 762870e3c6 fix catholic slur filter 2023-09-17 21:54:36 +03:00
Aevann a9a16c8376 remove redundant function 2023-09-16 02:48:33 +03:00
Aevann e4d663d241 pin the 1st post for 11 hours 2023-09-15 20:06:24 +03:00
Aevann 7423ac7959 re-add y'all seein' eye 2023-09-15 18:43:42 +03:00
Aevann 8deea6e608 use codeblock 2023-09-15 16:26:10 +03:00
Aevann 9daa939cae Revert "Adds blackjack split (#197)"
This reverts commit 30d10f638e.
2023-09-15 14:30:08 +03:00
top 30d10f638e Adds blackjack split (#197)
Holy shit this was a massive pain, done now though lol.

I recommend additional testing, I mean I did test this a ton locally but I also spent 3 hours fixing bugs and maybe missed something

Co-authored-by: Chuck <dude@bussy.com>
Reviewed-on: #197
Co-authored-by: top <top@noreply.fsdfsd.net>
Co-committed-by: top <top@noreply.fsdfsd.net>
2023-09-15 11:27:00 +00:00
Aevann 4b69ff1b0d improve css_url_regex 2023-09-15 04:40:53 +03:00
Aevann e824a3a476 put all youtube regexes next to eachother like reddit 2023-09-15 04:25:38 +03:00
Aevann e78a6f539d remove unnecessary slash 2023-09-15 04:24:16 +03:00
Aevann e74926a5a3 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4941566#context 2023-09-15 04:23:38 +03:00
Aevann 7c1520d37d minor unnecessary improvement to a couple of regexes 2023-09-15 04:23:15 +03:00
Aevann 9f505a17fd fix youtu.be links being jumbled like this https://rdrama.net/post/200792 2023-09-15 04:20:18 +03:00
Aevann efa82d4c32 remove unnecessary youtube archival that doesnt even work 2023-09-15 04:19:09 +03:00
Aevann 70a3510ed4 counter a cp spammer 2023-09-15 03:10:11 +03:00
Aevann b3ef4734a5 more accurate function name 2023-09-15 03:07:17 +03:00
Aevann a22c14f21c remove unnecessary shit 2023-09-15 02:19:44 +03:00
Aevann 6b86b24148 better staging support 2023-09-15 01:55:16 +03:00
Aevann 4071dead5b fix broken mention pfps in localhost 2023-09-15 00:02:20 +03:00
Aevann 407f718613 add .title() slur replacer (tested on staging, max time it delayed the request by was 20 milliseconds, worth it IMO) 2023-09-14 23:46:20 +03:00
Aevann 1a6df0086c fix for old versions of reddit api 2023-09-14 23:19:06 +03:00
Aevann 398d301ece remove raw.githubusercontent.com from approved_embed_hosts, repos get deleted and we'd end up with broken images 2023-09-14 23:05:24 +03:00
Aevann 1bd7a7a81c stop spam 2023-09-14 22:57:48 +03:00
Aevann 112841cf9e make offsite_mentions_task take 3 seconds instead of 14 seconds 2023-09-14 20:36:15 +03:00
Aevann b029ae2c38 only print "Cron tasks finished" when they're actually finished 2023-09-14 20:36:14 +03:00
Aevann db7501629c make sure useless "/" is always removed for better repost checking 2023-09-14 03:34:13 +03:00
Aevann 5e6ebb3599 only add ?context=8 to comment links 2023-09-14 03:32:22 +03:00
Aevann 03b33deb26 allow subreddit links to get converted to old.reddit.com too 2023-09-14 03:30:47 +03:00
Aevann e375e44645 remove unnecessary dashes 2023-09-14 03:23:24 +03:00
Aevann 4dbd55d372 simplify regex 2023-09-14 03:11:00 +03:00
Aevann 497a39e266 remove unnecessary garbage from reddit_domain_regex 2023-09-14 03:09:32 +03:00
Aevann 54717e21b1 replace reddit.com/user/blahblah too 2023-09-14 03:06:54 +03:00
Aevann 12a3d7b026 fix ppl not getting kicked from !verifiedrich when their paypig expires 2023-09-14 02:48:20 +03:00
Aevann 9b75debb2d automate movie night 2023-09-14 01:39:47 +03:00
Aevann e489314ab9 remove repeated commit statements 2023-09-14 01:19:07 +03:00
Aevann 506bf91dc0 test last commit 2023-09-13 23:57:03 +03:00
Aevann 6afd8d64ab add every_fri cron flag 2023-09-13 23:55:59 +03:00
Aevann e80244e79b restore r*pe 2023-09-13 22:39:31 +03:00
Aevann 210e97dff0 fix transaction timeout issues and prevent long locks 2023-09-13 21:11:58 +03:00
Aevann f33cb8efaf remove fonts.googleapis.com since it hosts css and not font files 2023-09-13 20:11:31 +03:00
Aevann e639da6d89 remove duplicate sources from CSP 2023-09-13 19:58:36 +03:00
Aevann 3e7d558a77 letmegooglethat.com & lmgtfy.app > google.com 2023-09-13 19:35:10 +03:00
Aevann dfb195714a simpler code 2023-09-12 23:28:10 +03:00
Aevann 9ce6027621 remove print-debugging 2023-09-12 23:27:43 +03:00
Aevann 645d510d6d fix bug with offsite mentions 2023-09-12 23:26:26 +03:00
Aevann 4b1fb5eec1 print-debugging 2023-09-12 22:55:05 +03:00
Aevann b2c17d1701 dont break 2023-09-12 22:54:17 +03:00
Aevann dbddee2fa1 remove forgotten line 2023-09-12 22:53:31 +03:00
Aevann 35f7b46fc8 handle error 2023-09-12 17:32:07 +03:00
Aevann 4c87c88cfc revert last commit 2023-09-11 22:49:02 +03:00
Aevann ac46269278 try smth 2023-09-11 22:43:15 +03:00
Aevann b0a05e5871 handle old comments 2023-09-11 21:39:23 +03:00
Aevann be91cca7da delete unused parameter 2023-09-11 21:30:13 +03:00
Aevann d65e3ab6c7 fix error in _sub_inactive_purge_task 2023-09-11 21:30:05 +03:00
Aevann c4b12d01b5 im retarded? 2023-09-11 21:16:16 +03:00
Aevann 6fe7c655d2 same as last commit 2023-09-11 21:12:10 +03:00
Aevann b7e3f7719e try smth to fix error 2023-09-11 21:06:41 +03:00
Aevann b0f6e81ccc restore offsite_mentions_task for normal every-5-minute usage 2023-09-11 20:55:46 +03:00
Aevann 0ccbe7aad3 Revert "remove soren mention notif"
This reverts commit 4718df733b.
2023-09-11 20:34:19 +03:00
Aevann 809112b8e1 restore offsite_mentions_task 2023-09-11 20:26:30 +03:00
Aevann 3254186c5b delete unused perm 2023-09-11 20:24:46 +03:00
Aevann 18dd872f7a move bets to JL2 2023-09-11 20:24:38 +03:00
Aevann 5c04a2e4e7 remove unnecessary 'localhost' 2023-09-09 21:59:00 +03:00
Aevann 7f1a713956 disable offsite_mentions_task temporarily 2023-09-09 21:57:59 +03:00
Aevann 2804210981 fix site crashing 2023-09-09 21:57:15 +03:00
Aevann b1ae6a324a restore y'all-seeing-eye function using pullpush (initial commit) 2023-09-09 21:51:09 +03:00
Aevann 2a2b299f70 delete annoying padding 2023-09-09 21:09:36 +03:00
Aevann 671c9024b1 undo dtama filter 2023-09-09 21:09:35 +03:00
Aevann 1dba2d7aa2 use undelete.pullpush.io 2023-09-09 18:44:47 +03:00
Aevann dc02ac42f5 add to CSP to prevent docker breaking 2023-09-09 18:20:57 +03:00
Aevann b105151af5 remove weird redundancy 2023-09-09 18:17:02 +03:00
Aevann d02e36b966 Revert "boost /h/marseycrossing"
This reverts commit 5dce8e9d28.
2023-09-09 18:15:14 +03:00
Aevann 5dce8e9d28 boost /h/marseycrossing 2023-09-09 17:40:48 +03:00
Aevann bc40ba9eda boost /h/love4fatpeople 2023-09-09 17:24:44 +03:00
Aevann 7eaec0ce17 kill `transform` 2023-09-09 04:47:43 +03:00
Aevann f3fdafd811 move img-src and media-src to the end and remove 'self' for being redundant 2023-09-09 02:47:56 +03:00
Aevann 1bb16c6e65 try smth on devrama 2023-09-09 02:29:50 +03:00