From ce1bd616dde34d247c5708e791d03ac88a31bcb9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 6 Aug 2023 00:59:32 +0000 Subject: [PATCH] fix hackernews links --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 25be8249b..759e46e1c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -668,7 +668,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 {'v','context','q','page','time_continue','title','scrollToComments','u','url','story_fbid','fbid','forum_id','vid','oldid','postid','post_id','threadid','thread_id','ticket_form_id','_x_tr_sl','_x_tr_tl','_x_tr_hl','_x_tr_pto'}: + if k in {'id','v','context','q','page','time_continue','title','scrollToComments','u','url','story_fbid','fbid','forum_id','vid','oldid','postid','post_id','threadid','thread_id','ticket_form_id','_x_tr_sl','_x_tr_tl','_x_tr_hl','_x_tr_pto'}: return True if k == 't' and domain != 'twitter.com': return True