From 0f4462ca5b2bb1386e08e3fe9a99b546f64742e8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 23 Oct 2022 10:48:19 +0200 Subject: [PATCH 1/5] increase pin limit to 4 on WPD --- files/helpers/const.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/const.py b/files/helpers/const.py index 586ccd2d7..ecd2179a8 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -472,6 +472,7 @@ elif SITE == 'pcmemes.net': BANNER_THREAD = 28307 elif SITE == 'watchpeopledie.tv': + PIN_LIMIT = 4 WELCOME_MSG = """Hi, you! Welcome to WatchPeopleDie.tv, this really cool site where you can go to watch people die. I'm @CLiTPEELER! If you have any questions about how things work here, or suggestions on how to make them work better than they already do, definitely slide on into my DMs (no fat chicks).\nThere's an enormously robust suite of fun features we have here and we're always looking for more to add. Way, way too many to go over in an automated welcome message. And you're probably here for the videos of people dying more than any sort of weird, paradoxical digital community aspect anyway, so I won't bore you with a tedious overview of them. Just head on over to [your settings page](https://watchpeopledie.tv/settings/profile) and have a look at some of the basic profile stuff, at least. You can change your profile picture, username, flair, colors, banners, bio, profile anthem (autoplaying song on your page, like it's MySpace or some shit, hell yeah), CSS, all sorts of things.\nOr you can just go back to the main feed and carry on with watching people die. That's what the site is for, after all. Have fun!\nAnyway, in closing, WPD is entirely open source. We don't really need new full-time coders or anything, but if you'd like to take a look at our repo - or even submit a PR to change, fix, or add some things - go right ahead! We are on [GitHub](https://github.com/Aevann1/rDrama).\nWell, that's all. Thanks again for signing up. It's an automated message and all, but I really do mean that. Thank you, specifically. I love you. Romantically. Deeply. Passionately.\nHave fun!""" FEATURES['PATRON_ICONS'] = True From c8f24eab1b0808524ee5b89c9d03d7077978c7b9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 23 Oct 2022 10:57:13 +0200 Subject: [PATCH 2/5] fix videos --- files/helpers/sanitize.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index d4abcabcf..4577f6325 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -17,7 +17,7 @@ import requests allowed_tags = ('b','blockquote','br','code','del','em','h1','h2','h3','h4','h5','h6','hr','i', 'li','ol','p','pre','strong','sub','sup','table','tbody','th','thead','td','tr','ul', - 'marquee','a','span','ruby','rp','rt','spoiler','img','lite-youtube','video','source','audio','g') + 'marquee','a','span','ruby','rp','rt','spoiler','img','lite-youtube','video','audio','g') allowed_styles = ['color', 'background-color', 'font-weight', 'text-align', 'filter',] @@ -57,10 +57,8 @@ def allowed_attributes(tag, name, value): if tag == 'video': if name == 'controls' and value == '': return True if name == 'preload' and value == 'none': return True - return False - - if tag == 'source': if name == 'src': return is_safe_url(value) + return False if tag == 'audio': if name == 'src': return is_safe_url(value) From 77e5da55efbcf71e1d4c4689488356b98debb12a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 23 Oct 2022 11:27:20 +0200 Subject: [PATCH 3/5] fix behavior that would replace marsey tags with "none" if we didn't specify them on update --- files/templates/update_assets.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/update_assets.html b/files/templates/update_assets.html index aec180c82..20832d931 100644 --- a/files/templates/update_assets.html +++ b/files/templates/update_assets.html @@ -49,11 +49,11 @@ - + {% if type == "Marsey" %} - + {% endif %}