From ce216f7f37acf505a4387ff00af2b81741d21b6f Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Feb 2024 01:39:19 +0200 Subject: [PATCH] fix 500 error --- 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 81898d733..fa0976330 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -683,7 +683,7 @@ def filter_emojis_only(title, golden=True, count_emojis=False, obj=None, author= return title def is_whitelisted(domain, k): - if k.lower.startswith('utm_'): + if k.lower().startswith('utm_'): return False if domain not in {'youtube.com','reddit.com','twitter.com','msn.com','wsj.com','tiktok.com','forbes.com','dailymail.co.uk','facebook.com','spotify.com','nytimes.com','businessinsider.com','instagram.com','yahoo.com','thedailybeast.com','nypost.com','newsweek.com','bloomberg.com','quora.com','nbcnews.com','reuters.com','tmz.com','cnbc.com','marketwatch.com','thetimes.co.uk','sfchronicle.com','washingtonpost.com','cbsnews.com','foxnews.com','bbc.com','bbc.co.uk','ifunny.co','independent.co.uk'}: