Commit Graph

5019 Commits (eb98740f972fe3e87e1b7d6757a0afa6792031a6)

Author SHA1 Message Date
justcool393 02d0e2043e rename APPS_MODERATE to APPS_MODERATION 2022-10-06 00:40:36 -07:00
justcool393 ad7f3b7363 > to >= 2022-10-06 00:34:57 -07:00
Aevann1 96f4f8499f fix 500 errors 2022-10-06 09:30:38 +02:00
justcool393 f1275b90eb filter properly per poll: https://rdrama.net/post/79285/-/2845495 2022-10-06 00:04:46 -07:00
justcool393 6c3b0f13da search and stuff 2022-10-05 23:45:27 -07:00
Aevann1 fea0ce115f do the result of this poll https://rdrama.org/post/79285/-/2845495?context=8#context 2022-10-06 08:41:48 +02:00
Aevann1 fbd815f54e fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2847925?context=8#context 2022-10-06 08:26:10 +02:00
justcool393 039fa606d6 streamer permissions 2022-10-05 23:22:42 -07:00
justcool393 8d51980dca rename cache purge things to include prefix 2022-10-05 23:21:04 -07:00
justcool393 6911101e29 post bet distributions 2022-10-05 22:59:27 -07:00
justcool393 6401f9e9c2 shadowban log 2022-10-05 22:56:19 -07:00
justcool393 53a5343a55 use ban permission for muting and also add a user home permission (wonder if should be the same as mop perm) 2022-10-05 22:54:48 -07:00
justcool393 047013f92b patron perm and also move them around 2022-10-05 22:48:55 -07:00
justcool393 0c0fa68cb4 title change permission 2022-10-05 22:45:44 -07:00
justcool393 1220d06eab some admin perms and also fix search 2022-10-05 22:37:50 -07:00
justcool393 20bd38b5d3 add oauth permissions 2022-10-05 22:33:55 -07:00
justcool393 dc5a132583 mop visibility, WPD notifications, and a fix with shadowbans 2022-10-05 22:25:45 -07:00
justcool393 38f3c7ed55 view sorted admin list and message blocked users 2022-10-05 22:16:09 -07:00
justcool393 68851ed986 profile views and modmail/hole creation notifications 2022-10-05 22:07:38 -07:00
justcool393 d78d57ec79 all seeing eye permission 2022-10-05 21:59:06 -07:00
justcool393 06f88e8a4a post based permissions mostly 2022-10-05 21:45:54 -07:00
justcool393 57b08043a4 notification settings and admin setting 2022-10-05 21:40:02 -07:00
Aevann1 0c8ead2e7d stop using lain.la 2022-10-06 06:31:08 +02:00
justcool393 3f1cc45a2b settings, cache, and domain ban permissions 2022-10-05 21:26:15 -07:00
justcool393 9bb7b3758f distinguish stuff 2022-10-05 21:19:11 -07:00
justcool393 44bf01151f apparently this thing likes to commit without committing half of it ok 2022-10-05 21:03:40 -07:00
justcool393 a3b9d71e70 user badge permissions 2022-10-05 20:50:02 -07:00
justcool393 65c75ba5da club permissions 2022-10-05 20:47:42 -07:00
justcool393 a22c426310
fix unblocking (type error) 2022-10-05 20:45:03 -07:00
justcool393 4aef026594 add and remove admin permissions 2022-10-05 20:37:18 -07:00
justcool393 3cf972ef9a merge permission 2022-10-05 20:33:23 -07:00
justcool393 c813f52c1a view active users perm 2022-10-05 20:29:14 -07:00
justcool393 1a0785d497 add perm for kippy's marseybux printer 2022-10-05 20:26:39 -07:00
justcool393 c0f753e101 asset submissions permissions 2022-10-05 20:15:10 -07:00
justcool393 c2109fd611 modmail viewing perm 2022-10-05 20:10:57 -07:00
justcool393 d709334180 lottery permissions 2022-10-05 20:09:20 -07:00
justcool393 f5996afc5a add some perm requirements and add agendaposter thing 2022-10-05 20:04:38 -07:00
justcool393 970a7adfbd buy ghost award permission 2022-10-05 19:57:31 -07:00
justcool393 0349862531 view pending submitted marseys and hats perms 2022-10-05 19:55:54 -07:00
justcool393 ae0c215af3 ... 2022-10-05 19:51:44 -07:00
justcool393 43f137208a bypass pin limit perm and also fix a shadowban perm 2022-10-05 19:51:30 -07:00
justcool393 d8610b34b6 changelog permission and don't query db for badges if admin with perm level 2022-10-05 19:45:05 -07:00
justcool393 2fc3044d5b shadowban perms and stuff 2022-10-05 19:24:37 -07:00
justcool393 d5a48871f8 user ban and also fix global hole mod a bit i hope i didn't screw up the templates 2022-10-05 18:58:43 -07:00
justcool393 591e6342bb editing permissions 2022-10-05 18:24:37 -07:00
justcool393 4b78ed176a global moderation perm and add some more checks for const perm 2022-10-05 18:16:52 -07:00
justcool393 0dfff1f4f6 editing posts to JL3 (will be constantified soon) 2022-10-05 18:03:23 -07:00
justcool393 04f24cd8fd content moderation permission level
holy crap there's a lot
2022-10-05 17:57:08 -07:00
justcool393 2a66104d8b improve body for edit_post 2022-10-05 16:35:44 -07:00
justcool393 d58351637c use constants 2022-10-05 16:35:44 -07:00
justcool393 093ced7b20 introduce constant for post and title length 2022-10-05 16:35:44 -07:00
justcool393 2a53df20ff consistency in return error and returned status code 2022-10-05 16:35:44 -07:00
justcool393 88ae00deef sanitize raw bodies 2022-10-05 16:35:44 -07:00
justcool393 19b2f71c3b improve raw title sanitization and don't check the same thing like 5 times 2022-10-05 16:35:44 -07:00
Aevann1 25707af72a Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-06 01:24:57 +02:00
Aevann1 2f979b859b generate modlogs when a hole janny toggles nsfw 2022-10-06 01:24:54 +02:00
Snakes 3f338fc3f2 WPD: add login required explanatory text. 2022-10-05 19:17:42 -04:00
Aevann1 f5f0f7d528 give carp notifs for new users on rdrama again + make new users follow kippy on PCM 2022-10-06 00:22:57 +02:00
Aevann1 67d6d7e2de [PCM] allow all jannies to add streamers 2022-10-06 00:20:09 +02:00
Aevann1 3cd21e8899 got rid of printi awards 2022-10-05 23:23:00 +02:00
Aevann1 f77bab96eb Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-05 23:11:54 +02:00
Aevann1 4e7510ef64 increase notif count from 10 to 50 2022-10-05 23:11:52 +02:00
justcool393 9a1efe8aec add some more chudrama checks (ideally this would be a can_see function or something) 2022-10-05 04:16:03 -07:00
justcool393 9575e11b8b add get_sub_by_name function 2022-10-05 03:37:29 -07:00
justcool393 4037eed228 use constant instead of literal 200 for poll bets 2022-10-04 23:07:53 -07:00
justcool393 0a82ca0c30
don't reply to deleted posts/comments 2022-10-04 17:18:19 -07:00
justcool393 d5bd3463e8
disallow permanently banned users from untoggling NSFW
can help i guess prevent abuse and creating a situation where dueling NSFW toggles have to be set
2022-10-04 14:09:25 -07:00
Aevann1 fabbc7a1a3 allow hole jannies to mark posts and comments in their holes as +18 2022-10-04 22:10:59 +02:00
Aevann1 bf9a2398da add nginx to docker 2022-10-04 21:48:52 +02:00
Aevann1 08d6a9c901 Revert "add nginx to docker"
This reverts commit 7c1eb4c6e3.
2022-10-04 21:35:02 +02:00
Aevann1 d98e4c9c1c convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
Snakes 6757831e0f
Sanitize more special characters in search. 2022-10-04 01:31:27 -04:00
Aevann1 7c1eb4c6e3 add nginx to docker 2022-10-04 03:06:57 +02:00
Snakes 247318d67b
Sanitize /casino/<game> parameter input. 2022-10-03 16:40:33 -04:00
justcool393 591fe9721f
don't let shadowbanned users create holes 2022-10-03 01:18:06 -07:00
Snakes 99b6b356f0
Add comment search "quoted phrase" behavior. 2022-10-02 15:50:05 -04:00
Snakes e05b1197c6
Identify benefactors in listing. 2022-10-02 15:37:22 -04:00
Snakes 81dda4f6cc
Serve static user content with nginx. 2022-10-02 14:27:18 -04:00
Snakes 0dfa4525fa
Remove special characters from search query. 2022-10-02 07:42:42 -04:00
Aevann1 3bf62c6ff0 add missing ban_reason when shadowbanning 2022-10-02 13:31:02 +02:00
Aevann1 da4ade067d make pizza's vote on himself be the first 2022-10-02 12:35:04 +02:00
Snakes 216022a5a0
Comments search: utilize lexeme config. 2022-10-02 06:24:03 -04:00
Snakes 701f64c91b
Change comment search to use tsvector. 2022-10-02 04:55:39 -04:00
justcool393 b79a89560f
add requested kind to set if not present
fixes issue where the kind wouldn't show up on the list and cause a error in template rendering
2022-10-02 00:50:59 -07:00
Snakes cd0b564401
Add 'added' column to /marseys. 2022-10-01 18:27:51 -04:00
Aevann1 04895e1fac remove my effortpost algo (cant have shit in detroit) 2022-10-01 19:17:58 +02:00
Aevann1 a7acbe9831 show our email to loggedout visitors in /contact 2022-10-01 12:14:46 +02:00
Aevann1 7e7c14fe22 fix bug in /live 2022-10-01 11:43:16 +02:00
Aevann1 7212fa44ef give ppl an explanation when searching comments 2022-10-01 11:38:14 +02:00
justcool393 fc623b7201 get id fix for sbs 2022-09-30 22:16:15 -07:00
justcool393 f9d6976202
include shadowbanned users here 2022-09-30 22:08:18 -07:00
Aevann1 6a0fd03548 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-01 01:38:09 +02:00
Aevann1 d9a57cf201 debug /live 2022-10-01 01:38:07 +02:00
justcool393 78b668a870 don't duplicate checks for users 2022-09-30 15:51:17 -07:00
justcool393 40c2360d00 don't duplicate checks for comments 2022-09-30 15:51:17 -07:00
justcool393 057bc360bf don't duplicate get checks for posts 2022-09-30 15:51:17 -07:00
Aevann1 08fc034973 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-30 23:07:56 +02:00
Aevann1 30d4f5e902 allow carp and snakes to see /patrons 2022-09-30 23:07:53 +02:00
justcool393 7e3f43c9ab
unperson shadowbanned users (#373)
* unperson shadowbanned users
if a shadowbanned user copes, does anyone hear them seethe?

* unperson shadowbanned users (by id)

* don't import that

* Add include_blocks.
We don't always want to request blocks from the db when we have a user set

* block shadowbanned users from hole mod tools

* don't allow awarding shadowbanned things

* fix conflict

* gracefully use get_account when specified and also add include_blocks flag to get_account as well
2022-09-30 14:00:58 -07:00
Aevann1 9e98494b65 fix betting rewards 2022-09-30 17:38:47 +02:00
Aevann1 52c5dd6028 disable /search/comments for now 2022-09-30 14:20:53 +02:00
Aevann1 0136a4a37f Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-30 14:19:54 +02:00
Aevann1 4a1865742a fix bad code in /live 2022-09-30 14:19:48 +02:00
justcool393 c1ca1a02ac
only attempt to parse HTML content types for titles (#382)
* only attempt to parse HTML content types for titles

also don't try to get submission titles for .gifv, .tif, .tiff

* ratelimit to 3 per minute instead of 6 minutes

no one will ever need more than 3 requests to this endpoint per minute - justcool393

6 per minute is already kinda a lot for this endpoint, i think aggressively ratelimiting this one is fine, especially since it's a minute ratelimit
2022-09-30 14:13:06 +02:00
justcool393 0617bb154c
use get_post to handle getting a post (#381)
why did we ever catch an exception throw it away, then catch an exception (something get_post already does) and then finally get the post
2022-09-30 01:44:32 -04:00
Aevann1 7b7092b5f5 better syntax in /live 2022-09-29 20:29:44 +02:00
Aevann1 5b1e873e54 fix /live 2022-09-29 20:25:01 +02:00
Aevann1 6b0c734254 Revert "make the default for notify True"
This reverts commit c192019a22.
2022-09-29 20:05:35 +02:00
Aevann1 c192019a22 make the default for notify True 2022-09-29 19:58:19 +02:00
Aevann1 8017c03e97 limit seeing carp's followers only on WPD 2022-09-29 17:58:49 +02:00
Aevann1 c16654c4c7 make sure u dont try to get the title of a file (always times out) 2022-09-29 16:45:59 +02:00
Aevann1 c67b4eea0a limit new users following carp to WPD 2022-09-29 16:16:35 +02:00
Aevann1 51d7cd6d7e fix shit with hole logs 2022-09-29 12:18:27 +02:00
Aevann1 09cc43060d
add hole mod logs (#380) 2022-09-29 11:39:37 +02:00
Aevann1 03e925fb3c use ban_reason column as a reason for shadowbanning too 2022-09-29 08:36:59 +02:00
Aevann1 2f16510183 specify which error it was in process_streamer() 2022-09-29 08:08:40 +02:00
Aevann1 87f3af5968 generate notifs for moving posts 2022-09-29 08:05:42 +02:00
Snakes 4a54c6219a
Add trailing final newlines to source files.
Touched a ton of files to finally standardize on having trailing
final newlines, as best practice recommends and so our devs stop
accidentally fighting each other over it.

This was performed automatically with the following:
git ls-files -z '*.py' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
git ls-files -z '*.css' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2022-09-29 01:43:29 -04:00
Snakes 11a9efb7cb
Amend f05ec93b: blackjack state implied constraint. 2022-09-29 00:36:58 -04:00
Snakes f05ec93b95
Add gambling wager badge logic.
This commit touches more files than it ought to because this change
required untangling some circular imports, notably a lingering import
of files.helpers.slots in helpers.actions (presumably from old Snappy
gambling logic) and the User.active_blackjack_game accessor. Otherwise,
the logic is fairly straightforward.
2022-09-29 00:26:50 -04:00
justcool393 6c8faf6de7
add API version of stats page (#378)
statsmaxxing
2022-09-28 10:14:40 +02:00
justcool393 e5de8cc66c
add mod action if JL3 kicks post from hole (#377)
* add mod action if JL3 kicks from hole

* don't be dumb
2022-09-27 18:09:08 -04:00
Snakes 9914fd215c
Fix leaderboard_thread dispatched as blocking. 2022-09-27 02:32:42 -04:00
Outrun Colors 430cbe676c
Nest if condition in chat 2022-09-27 00:31:23 -05:00
Outrun Colors 300a5164f6
Add DMing to chat 2022-09-27 00:15:22 -05:00
Snakes 77ed5728c4
Restore mistakenly removed commenting logic. 2022-09-26 22:44:06 -04:00
Snakes 528d26b094
Fix /marseys missing listdir import.
Apparently the /marseys route was getting its listdir from one of
the `from os import listdir` removed in fa4dee419d. static.py
already has an import os, so we just use the fully qualified
os.listdir.
2022-09-26 21:44:34 -04:00
Aevann1 faf4403e26 check for duplicate images when admigger threads for banners/sidebar/badges are used 2022-09-27 03:24:20 +02:00
Aevann1 cc85cab01d make badges 300px instead 2022-09-27 02:48:03 +02:00
Aevann1 fa4dee419d remove unnecessary imports 2022-09-27 02:47:52 +02:00
Aevann1 9a6dda2e1c fix syntax error in last commit 2022-09-27 02:22:06 +02:00
Aevann1 6b01467102 check for existing subscription 2022-09-27 02:19:52 +02:00
Aevann1 72e605eabb Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-26 10:58:46 +02:00
Aevann1 ffa83ad3e7 disallow permabanned hole mods from pinning or unpinning 2022-09-26 10:58:43 +02:00
Snakes 0b416dcf2c
Revise marsify logic. 2022-09-26 02:09:26 -04:00
Aevann1 e474a5f42d go from dutch to greek in /live 2022-09-26 07:08:29 +02:00
Aevann1 37e1f25624 make using proxies only happen in 3 circumstances again 2022-09-26 06:01:25 +02:00
Aevann1 fea1f276d9 log /live errors 2022-09-26 04:46:56 +02:00
Aevann1 f2af76c905 add proxies on hcaptcha requests 2022-09-26 04:40:58 +02:00
Aevann1 968c55f8fc add proxies on discord requests 2022-09-26 04:40:46 +02:00
Aevann1 7e4e98887b remove proxies from cloudflare 2022-09-26 04:39:03 +02:00
Aevann1 05079a40f4 limit banners to 1MB 2022-09-26 03:41:03 +02:00
Snakes b0529716bc Remove voluntary marsify toggle. 2022-09-25 21:32:36 -04:00
Aevann1 4c26a7cd02 limit sidebar and badge images to 1MB 2022-09-26 03:27:31 +02:00
Aevann1 2dc7805df8 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-26 03:15:41 +02:00
Aevann1 8fcc91a43e reduce resize values 2022-09-26 03:15:36 +02:00
justcool393 a8e74d3355
delete the spider badge if unspidering, not the marsify one (#374) 2022-09-25 16:17:11 -04:00
Aevann1 a2f578c7b7 fix exploit 2022-09-25 13:30:22 +02:00
Aevann1 3339baee54 fixing /live 2022-09-25 13:28:53 +02:00
Aevann1 5a97a6f6e6 allow pcm /live to enter channel link 2022-09-25 08:45:19 +02:00
Aevann1 8a85c2413c add consent 2022-09-25 08:31:46 +02:00
Aevann1 a28a4664c2 huh? 2022-09-25 08:30:49 +02:00
Aevann1 9d9783fe0e fix 2022-09-25 08:27:58 +02:00
Aevann1 10d09f076c fix 2022-09-25 08:18:03 +02:00
Aevann1 c79067f7f1 make it possible to add channels by name 2022-09-25 08:14:21 +02:00
Aevann1 8d6937e237 add obese 2022-09-25 07:46:02 +02:00
Aevann1 13a3d5c27e fix 2022-09-25 07:45:02 +02:00
Aevann1 f8fccd34db allow me to add channels 2022-09-25 07:43:44 +02:00
Aevann1 4ebd8fb552 limit adding channels to kip 2022-09-25 07:42:29 +02:00
Aevann1 92bdd67884 debug 2022-09-25 07:31:55 +02:00
Aevann1 fc2758df50 fix 2022-09-25 07:24:59 +02:00
Aevann1 63a7183f7e fix /live regex 2022-09-25 06:53:53 +02:00
Aevann1 2b0a798fec fix 2022-09-25 06:40:19 +02:00
Aevann1 5d30c3a632 fix 2022-09-25 06:38:43 +02:00
Aevann1 78f0721bb0 fix 2022-09-25 06:37:16 +02:00
Aevann1 695fca5d35 fix 2022-09-25 06:35:56 +02:00
Aevann1 015074c4ca the fuck 2022-09-25 06:33:55 +02:00
Aevann1 97b2e09b65 fix 2022-09-25 06:31:59 +02:00
Aevann1 351a7ca17b fix 2022-09-25 06:27:28 +02:00
Aevann1 230b71c19b same as last commit 2022-09-25 06:22:33 +02:00
Aevann1 4212cfa0b2 testing on pcm 2022-09-25 06:11:06 +02:00
Aevann1 705d3d9e4b Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-25 05:44:00 +02:00
Aevann1 ea7803ef44 testing 2022-09-25 05:43:57 +02:00
Outrun Colors 5e180fc856 Merge branch 'frost' of github.com:Aevann1/rDrama into frost 2022-09-24 22:42:00 -05:00
Outrun Colors ba19d3aaa7
Censor quoted text 2022-09-24 22:41:57 -05:00
Aevann1 9ebea2c6e9 fix 2022-09-25 05:36:54 +02:00
Aevann1 a83821ebdb testin on devrama 2022-09-25 05:36:11 +02:00
Aevann1 8ce942dcc0 testing on devrama 2022-09-25 05:34:28 +02:00
Aevann1 8319aefe1c get it ready for pcm 2022-09-25 05:29:38 +02:00
Aevann1 dd0f8fbed7 proxy all requests we make 2022-09-25 05:23:50 +02:00
Aevann1 c2a189012b redirect instead of rendering 2022-09-25 05:21:41 +02:00
Aevann1 962cf66bcd flush printed shit 2022-09-25 05:17:15 +02:00
Aevann1 ae3b81bb82 fix 2022-09-25 05:11:18 +02:00
Aevann1 f4b41f0049 make addition and removal of channels happen instantly (testing in devrama) 2022-09-25 05:08:44 +02:00
Aevann1 dd7145410f add spider toggle 2022-09-25 04:44:19 +02:00
Snakes aea590dda1
Fix syntax error in 8b722f2075. 2022-09-24 19:39:30 -04:00
justcool393 8b722f2075
don't leak usernames with deflectors (#372)
cope marsey xd
2022-09-24 19:34:33 -04:00
Outrun Colors b2d185ada0
Fix that 2022-09-24 17:09:54 -05:00
Outrun Colors 695159052b
Add typing debounce/enable quoting 2022-09-24 17:05:50 -05:00
Outrun Colors 6b117decb8
Tick version 2022-09-24 15:36:56 -05:00
Snakes 0a05562f8c
Order sub exile/etc listings reverse chronological. 2022-09-24 14:11:48 -04:00
Snakes 1fe02b7743
Chat rework deployment infra fixes. 2022-09-24 00:26:44 -04:00
outruncolors 484de39566
[DO NOT MERGE] Chat restructure (#360)
* Create new subdirectory for chat-related stuff

* Gitignore

* Have new code show up on chat

* Have new code show up on chat

* Fix config issue

* More script stuff

* Create UserInput components

* More chat changes

* More updates to chat

* Add chat:watch script

* Move up state and pass down

* Match up existing functionality entirely

* Match up existing functionality entirely

* Send a message when hitting Enter

* feature based directories

* First crack at emoji drawer

* Leave everything in a fucked up state ugh

* Leave it in a better state

* Stop for the night

* Decouple by abstract chat functionality to provider

* Wait a minute...

* Small chat restructure

* Prepare for notifications

* Add root context

* Flash number of messages

* Read this and u die

* Add quote functionality

* Couple tweaks

* Shallowenize the features dir/

* Add activity list

* Ch-ch-ch-ch-ch-changes

* Enable moving drawer

* Hover style on activities

* UserList changes

* Add emoji processing logic

* Duhhhh

* Scroll to top when changing query

* Put the emoji in the drawer

* Improve emoji drawer

* Add emoji genres

* Do not show activities

* Add feature flag technology

* Fix issue where own messages were triggering notifications

* Adjust startup scripts

* Responsive part 1

* Styling changes for emoji genres

* More emoji drawer styling

* Add QuickEmojis

* Re-add classnames

* Set version

* Modify build script

* Modify build script

* Mild renaming

* Lots of styling changes

* Leggo.
2022-09-23 22:49:40 -05:00
Aevann1 0c182585c1 save ragnar on WPD 2022-09-24 03:41:35 +02:00
Aevann1 677a31f80d strip input [/live] 2022-09-24 02:21:32 +02:00
Aevann1 b32a399925 fix 2022-09-24 02:11:40 +02:00
Aevann1 95438cf9fd Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-24 02:00:47 +02:00
Aevann1 13f84a778e change wording 2022-09-24 02:00:43 +02:00
Snakes fc8c8b08a0
Add "Upvoted" post/comment lists on profile. 2022-09-23 17:33:46 -04:00
Aevann1 b0d1b1f157 fix /live ordering 2022-09-23 23:09:19 +02:00
Aevann1 84f4256c81 fix last commit 2022-09-23 23:01:38 +02:00
Aevann1 1b3fa8a63e same as last commit 2022-09-23 22:59:45 +02:00
Aevann1 a63d4940ae fix PCM /live list 2022-09-23 22:58:10 +02:00
Snakes 1cf5ec9e0d Revert "PCM: update live list in background."
This reverts commit 3acdb44a98.
2022-09-23 15:41:04 -04:00
Aevann1 1af335c9b3 i accidentially removed the /followers route lol 2022-09-23 20:30:17 +02:00
Aevann1 f9d1df54bf make pin and unpin award work on a basic of 6 hours (unlike posts which is 1 hour) 2022-09-23 16:41:56 +02:00
Aevann1 ebf83048be add /blockers (thx JC <3) 2022-09-23 14:58:33 +02:00
Aevann1 340f9e31fe limit asset perms and generate modlog for updating 2022-09-23 14:51:57 +02:00
Aevann1 ce4d2ada9e fix the @tax situation 2022-09-23 14:36:10 +02:00
Aevann1 d1bc2f3468 integrate check_ban_evade into check_for_alts 2022-09-23 14:33:58 +02:00
Aevann1 7392b37d86 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-23 14:09:35 +02:00
Aevann1 80f661f7fb remove unnecessary check 2022-09-23 14:09:33 +02:00
justcool393 376566e723
return 404 if oauth app doesn't exist (#366)
fixes an AttributeError if the oauth app doesn't exist
2022-09-23 14:08:54 +02:00
Aevann1 4f637d9538 fix 500 error 2022-09-23 14:08:31 +02:00
Snakes 3acdb44a98
PCM: update live list in background. 2022-09-22 19:39:26 -04:00
Aevann1 495cc60a26 fix /live 2022-09-23 00:27:38 +02:00
Aevann1 ada5ab61a6 validate inputted channel id 2022-09-23 00:02:15 +02:00
Aevann1 2ef91698f4
allow PCM chadmins to add or remove channels (#365)
* testing on devrama

* fix for devrama

* fix

* fix

* fix

* fix

* fix

* fix

* test

* fix

* test

* test

* commit
2022-09-22 23:40:32 +02:00
Aevann1 c12f7a5f9a commit before rendering 2022-09-22 22:20:29 +02:00
Aevann1 8a8a67a059 remove ban_evade logic 2022-09-22 21:40:14 +02:00
Aevann1 5c7ff17512 remove "/live" from url for offline streamesr 2022-09-22 20:26:06 +02:00
Aevann1 0df33c86a4 remove unnecessary deprected behavior in /distribute 2022-09-22 20:23:18 +02:00
Aevann1 553218aaa5 make /live a cached cron job 2022-09-22 04:33:45 +02:00
Aevann1 59f7a7655b remove ordering as a test 2022-09-22 04:29:50 +02:00
Aevann1 71309f86fb order by viewer count 2022-09-22 04:22:21 +02:00
Aevann1 c20fc34704 dfs 2022-09-22 04:20:47 +02:00
Aevann1 d55438afad
Live (#364)
* test on devrama

* fix prev commit

* fix prev commit

* try some shit

* try some shit

* try some shit

* fix

* make it easier to change notif colors with custom css

* de

* t

* fgddfg

* fds

* fix

* fds

* dfs

* pain

* sdfsdf

* df

* xcv

* fd

* vxc

* xcv

* c

* fgdfgd

* sdf

* fsd

* fds

* sfd

* fdsf

* fd

* fds

* fds

* fsd

* fds

* fds

* fds

* fds

* fsd

* fds

* df

* fds

* dfs

* fd

* fsd

* fsd

* dfs

* sdf

* fsd

* fsd

* df

* dfs

* fd

* fsd

* dfs

* sdf

* sdf

* sdf

* fsd

* fds

* sfd

* sdf

* fds

* dfs

* df

* sdf

* sdf

* /live
2022-09-22 04:17:02 +02:00
scitzocel 610e1fbada
Sneed (#362)
* MARSEYANTISCHIZO

Fixed betting that was fucked

* Update admin.py
2022-09-22 02:22:08 +02:00
Aevann1 d22d60b5f7 fix typos 2022-09-22 01:52:39 +02:00
Aevann1 eb12464d43 make award immunity only in rdrama 2022-09-22 00:30:12 +02:00
Aevann1 955cee3f83 revise award immunity 2022-09-22 00:28:58 +02:00
Aevann1 201208e673 make deflector not stack 2022-09-22 00:28:35 +02:00
Aevann1 f17bce610d make chud award generate a mod log item when used by JL3 2022-09-21 22:55:34 +02:00
Aevann1 302a852de3 make carp immune to awards 2022-09-21 22:38:59 +02:00
Aevann1 61739b765e made spider award not give any notifs 2022-09-21 22:27:12 +02:00
Aevann1 5526bcf79d make pcm jannies able to give all badges 2022-09-21 21:43:57 +02:00
Aevann1 fb1b1279fe dont give me modmail notifs in WPD 2022-09-21 21:38:29 +02:00
Aevann1 f79d65973c fix 500 error on granting awards 2022-09-21 20:53:42 +02:00
Aevann1 85b72109a3 increase badge width from 200px to 400px 2022-09-20 20:05:36 +02:00
Aevann1 272e39ebf2 add spider award 2022-09-20 19:52:52 +02:00
Aevann1 61c586d7cc make 3 routes auth_required instead of auth_desired 2022-09-20 02:54:10 +02:00
Aevann1 7d39cdb520 minor auth_desired refactor 2022-09-20 02:51:01 +02:00
Aevann1 696423d174 add /donate page 2022-09-20 01:59:24 +02:00
Aevann1 3e8c618804 testing on devrama 2022-09-20 00:59:38 +02:00
Aevann1 5e6fe2e27d testing on devrama 2022-09-20 00:58:55 +02:00
Aevann1 6ab873fb76 small shadowbanning tweak 2022-09-19 22:24:40 +02:00
Aevann1 ff7a54e842 Revert "test ratelimiting on devrama"
This reverts commit 1d83412545.
2022-09-19 21:43:47 +02:00
Aevann1 1d83412545 test ratelimiting on devrama 2022-09-19 21:35:58 +02:00
Aevann1 a40c367e88 remove marsify badge when user turns it off in the settings 2022-09-19 20:54:09 +02:00
Aevann1 f54791cc4c remove categories 2022-09-19 20:04:30 +02:00
Aevann1 f7727f1029 refactor sigs 2022-09-19 19:51:40 +02:00
Aevann1 bb28d2d2a3 delete /order 2022-09-19 19:13:24 +02:00
Aevann1 2026a1a9c7 restore the 10 award limit for me 2022-09-19 19:10:52 +02:00
Aevann1 4519db0e57 make me get notifs for modmail again 2022-09-19 19:10:37 +02:00
Aevann1 db9622565f tweak last commit 2022-09-19 01:36:48 +02:00
Aevann1 0930f85c4b remove all previous high quality versions of an asset when updating it 2022-09-19 01:34:23 +02:00
Aevann1 e5da38d19c change bite award back to 24 hrs 2022-09-18 23:25:58 +02:00
Aevann1 3f5ab7315f add form to update hats 2022-09-18 19:38:53 +02:00
Aevann1 3b8d025f57 fix kofi 2022-09-18 02:28:09 +02:00
Aevann1 c943673df5 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-18 02:15:25 +02:00
Aevann1 3f000acde6 fix kofi issue 2022-09-18 02:15:23 +02:00
justcool393 50f60a5b5c
don't allow flairlocks on ghost posts (#358)
flairlocks can expose ghosts
2022-09-18 02:09:01 +02:00
Aevann1 8ffd87508c fix 500 error for /settings/kofi 2022-09-18 00:28:07 +02:00
Aevann1 6bd0043248 sneed 2022-09-18 00:06:29 +02:00
Aevann1 d1e391683b fix unread attribute 2022-09-17 23:59:49 +02:00
Aevann1 6ff943914e testing done 2022-09-17 22:25:15 +02:00
Aevann1 eee6058330 why yes, I test on prod, how could you tell? 2022-09-17 22:21:21 +02:00
Aevann1 956a8c8506 purge CF cache on emoji update 2022-09-17 22:13:30 +02:00
Aevann1 a03e3d3e6c restore surv tier 2022-09-17 22:03:28 +02:00
Aevann1 1d184661e1 allow me to remove/approve marseys and hats 2022-09-17 20:43:50 +02:00
Aevann1 ef00d588f5 add /admin/update/marseys 2022-09-17 17:08:24 +02:00
Aevann1 e315c56f7b fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2737764?context=8#context 2022-09-17 16:39:50 +02:00
Aevann1 0c0a612f53 fix 500 error 2022-09-17 14:12:30 +02:00
Aevann1 1f3f735502 fix hat badges 2022-09-16 23:57:56 +02:00
Aevann1 2c33b09bbc add vaporizing 2022-09-16 22:39:19 +02:00
Aevann1 4ee3b8e5f9 fix prev commit 2022-09-16 22:12:59 +02:00
Aevann1 dad0018698 make leaderboard not take forever to load by removing the winnings tables 2022-09-16 22:05:28 +02:00
Snakes fdc8a78472
Fix leaderboard for winnings change. 2022-09-16 15:28:24 -04:00
Aevann1 2fb4ebdcb0 minor sanitize refactor 2022-09-16 18:30:34 +02:00
Aevann1 0618134eac fix hat badges 2022-09-16 16:06:18 +02:00
Aevann1 e19b2caf7d make marsify award get deflected 2022-09-16 15:18:19 +02:00
Aevann1 41de3c8fab disallow permabanned from seeing chat 2022-09-16 15:06:02 +02:00
Snakes 7780d6c190
Amend f1153031cc53: typo'd an identifier. 2022-09-16 04:59:15 -04:00
Snakes f1153031cc
Apply double-spend fix to hats. 2022-09-16 04:58:12 -04:00
Snakes 54cae4b570
Fix shop double-spend exploit. 2022-09-16 04:43:55 -04:00
Aevann1 bb1852709b Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-16 10:41:32 +02:00
Aevann1 9f231e096f award printing change in WPD 2022-09-16 10:41:30 +02:00
outruncolors a0c75ab677
Introduce user payment methods (#355)
* Add pay and charge methods into user class

* Replace casino charges/payments with new user methods

* Also refund wager on winning slots bets

* Unblock casino routes
2022-09-15 17:16:35 -05:00
Aevann1 43aeb6e1f9 sneed 2022-09-15 09:00:02 +00:00
Aevann1 8236514115 sneed 2022-09-15 08:00:03 +00:00
Aevann1 3a6c3d29a8 sneed 2022-09-15 03:00:02 +00:00
Aevann1 7ef876635b fix marsey count 2022-09-14 14:47:16 +02:00
Aevann1 566c5b19e3 fuck sake 2022-09-14 13:02:46 +02:00
Aevann1 a6ce6135d8 fix 2022-09-14 13:00:46 +02:00
Aevann1 c2f397df40 show the original file in /marseys 2022-09-14 12:55:35 +02:00
Aevann1 804c2b4e23 allow hole jannies to move posts in their hole to /h/chudrama 2022-09-14 12:45:28 +02:00
Aevann1 135bd2c60c remove unnecessary gay shit 2022-09-14 11:20:59 +02:00
Aevann1 4de53229d0 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-14 10:01:28 +02:00
Aevann1 5587b415dc fix kofi webhook 2022-09-14 10:01:25 +02:00
outruncolors 3ebccf35d1
Add order page (#353)
* Add order page route

* Initial backend post route

* Move to static and prevent logged in users

* Update files/routes/static.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Make requested changes

* Last snake changes

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
2022-09-13 21:21:25 -05:00
Aevann1 c13a1524fa dramacoin -> coin 2022-09-13 22:46:08 +02:00
Aevann1 a7236cd807 fix typo 2022-09-13 20:06:57 +02:00
Aevann1 73ae8f6e65 give a badge to permenantly marsified users 2022-09-13 20:02:08 +02:00
Aevann1 e4e42c6b2c give 250 DC to marsey creators 2022-09-13 20:00:11 +02:00
Aevann1 2fa71a252b kofi integration 2022-09-13 18:53:19 +02:00
Aevann1 e69827e6e0 kofi integration (testing on devrama) 2022-09-13 17:22:18 +02:00
Aevann1 d3e8a7f86c perserve asset_submission fields on error 2022-09-13 13:00:47 +02:00
Aevann1 f11dcf031b give notif on bagde removal 2022-09-13 12:27:09 +02:00
Aevann1 0c3cf0128a "That" -> "This" 2022-09-13 11:59:29 +02:00
Aevann1 0302270e16 more detailed pin/unpin messages 2022-09-13 11:01:30 +02:00
outruncolors 7d8cfe5576
Add Roulette (#351)
* Add roulette file

* Rename variable to avoid name collission

* Add basic route and create new template for game

* More work on the roulette template

* Initial connection of front-end roulette to back-end roulette

* Add to cron job

* Pass bets to the front end

* Update front-end looks

* Add stackable poker chips for bets

* Minor last changes

* Handle minimum bets

* Add bet table
2022-09-12 20:07:39 -05:00
Aevann1 e0d32c7105 dont send me a notif 2022-09-12 19:52:07 +02:00
Aevann1 b7013698c2 change resize for marseys from 300px to 250px 2022-09-12 13:05:16 +02:00
Aevann1 4abf75edc0 add error codes 2022-09-12 11:52:07 +02:00
Aevann1 7e811b47fb reporting improvement 2022-09-12 11:48:01 +02:00
Aevann1 6601d0d6be sort alphabetically 2022-09-12 09:22:35 +02:00
Aevann1 ee756bf4b6 minor submission changes 2022-09-12 09:17:57 +02:00
Aevann1 5b0b0f6ebb refactor original hats and marseys 2022-09-12 09:06:50 +02:00
Aevann1 2e31b52366 for consistency's sake, don't use {sub.name} inside strings anymore 2022-09-12 07:25:04 +02:00
Aevann1 cc0f2059c3 more descriptive success messages 2022-09-12 07:23:08 +02:00
Aevann1 1e49bb9e2c make submitted hats prices 1000 when animated 2022-09-11 16:35:34 +02:00
Aevann1 fbe7089d2a more detailed success message description 2022-09-11 16:32:00 +02:00
Aevann1 ce0b141325 specify the type of color code we want 2022-09-11 12:04:21 +02:00
Aevann1 09422ebf29 highlight unread DMs in /notifications/messages 2022-09-11 11:06:09 +02:00
Aevann1 9c8bc0fdd6 allow ppl blocked by someone to visit that someone's profile 2022-09-11 10:57:06 +02:00
Aevann1 14961d856f trim non-animated marseys and increase width to 300px 2022-09-11 10:49:46 +02:00
Aevann1 b0057483c8 link the admigger upload threads in the admin panel for easier access 2022-09-11 09:11:10 +02:00
Aevann1 fda1f1e562 allow asset submitters to remove their pending shit 2022-09-11 09:03:34 +02:00
Aevann1 5546bf56f3 same as last commit 2022-09-11 08:41:48 +02:00
Aevann1 3e6a3ef52d expose the pngs 2022-09-11 08:41:28 +02:00
Aevann1 0bc816328c nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger 2022-09-11 04:29:22 +02:00
Aevann1 ea17fa53c9 stop the error spam 2022-09-11 04:27:27 +02:00
Aevann1 b2b73b2658 sneed 2022-09-11 04:11:06 +02:00
Aevann1 20c5ad015b relax ratelimits in casino 2022-09-11 04:05:50 +02:00
Aevann1 cefd68755d stop the print spam 2022-09-11 03:56:47 +02:00
Aevann1 ae90eb1cf2 simplify house checking logic 2022-09-11 03:53:16 +02:00
Aevann1 55c20a67f5 remove hq images that dont fit requirements 2022-09-11 03:28:26 +02:00
outruncolors d57a569125
[DO NOT MERGE] Casino changes (#350)
* Merge up

* Create composable template for casino games

* Big changerinos

* Only allow double down sometimes

* Add drawing capability

* Make everything pretty

* Add leaderboard

* Update files/routes/casino.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Update files/helpers/casino.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Update files/helpers/twentyone.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Update files/helpers/twentyone.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Update files/helpers/twentyone.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Add some stuff

* Rehab screen

* Default sets for no games

* Stupid revert

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
2022-09-10 16:01:34 -05:00
Aevann1 89ab532425
Update asset_submissions.py 2022-09-10 15:46:56 +02:00
Aevann1 48e1c653db 2 folders instead of prefixes 2022-09-10 13:07:58 +02:00
Aevann1 18a530a330 wtf 2022-09-10 11:41:59 +02:00
Aevann1 ee630e55c9 testing 2022-09-10 11:40:57 +02:00
Aevann1 332ab2cbdf fix is_available 2022-09-10 11:37:43 +02:00
Aevann1 8f0b2ea9c3 test on devrama 2022-09-10 11:31:51 +02:00
Aevann1 327176d31b show most recent replies in /notifications at the top 2022-09-10 11:06:34 +02:00
Snakes 7586dfdbc8
asset_submissions: respect hat case-sensitivity.
Unlike Marsey names and tags, we display hat names & descriptions
with respect for capitalization. The filesystem and database treat
hat names as case-sensitive too, so there's no risk of conflict.
2022-09-10 03:56:37 -04:00
Snakes 0950dc81b8
Move asset submission routes out of static.py. 2022-09-10 03:56:37 -04:00
Aevann1 c1aae95d16 restore "notify followers" checkbox 2022-09-10 09:00:45 +02:00
Aevann1 0ddacad599 add prefixes for asset_submissions 2022-09-10 07:49:39 +02:00
Aevann1 166060cb01 forgot to filter submitter_id=None 2022-09-10 07:42:24 +02:00