From 53855fa080f7c1f9cef9fe82827fd16e7032dcd0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 6 Aug 2023 09:57:35 +0300 Subject: [PATCH] fix this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/4739435#context --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index cf4c1fb72..cb044c1ee 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -667,7 +667,7 @@ def filter_emojis_only(title, golden=True, count_emojis=False, graceful=False): def is_whitelisted(domain, k): if 'sort' in k.lower() or 'query' in k.lower(): return True - if k in {'_x_tr_hl','_x_tr_pto','_x_tr_sl','_x_tr_tl','comments','context','f','fbid','format','forum_id','id','lb','list','oldid','p','page','post_id','postid','q','scrollToComments','sp','story_fbid','tab','term','thread_id','threadid','ticket_form_id','time_continue','title','title_no','token','topic','type','u','udca','url','v','vid','viewkey'}: + if k in {'_x_tr_hl','_x_tr_pto','_x_tr_sl','_x_tr_tl','after','comments','context','count','f','fbid','format','forum_id','id','lb','list','oldid','p','page','post_id','postid','q','scrollToComments','sp','story_fbid','tab','term','thread_id','threadid','ticket_form_id','time_continue','title','title_no','token','topic','type','u','udca','url','v','vid','viewkey'}: return True if k == 't' and domain != 'twitter.com': return True @@ -701,7 +701,7 @@ def normalize_url(url): url = giphy_regex.sub(r'\1.webp', url) - if not url.startswith('/'): + if not url.startswith('/') and not url.startswith('https://rdrama.net') and not url.startswith('https://watchpeopledie.tv'): parsed_url = urlparse(url) domain = parsed_url.netloc qd = parse_qs(parsed_url.query, keep_blank_values=True)