From 60094a22cd9b1efa27f2c9c7705ea0671734e6b7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 24 Mar 2024 19:34:59 +0200 Subject: [PATCH] fix mentions --- files/helpers/offsite_mentions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/offsite_mentions.py b/files/helpers/offsite_mentions.py index f7256346c..646e87f32 100644 --- a/files/helpers/offsite_mentions.py +++ b/files/helpers/offsite_mentions.py @@ -88,7 +88,7 @@ def lemmy_mentions_task(): selftext = thing["body"][:5000] text += f'

{selftext}

' - if 'erdrama' in text: continue + if 'erdrama' in text.lower(): continue permalink = thing['ap_id'] text = f'New site mention by {author_string}\n\n{permalink}\n\n{text}' @@ -130,7 +130,7 @@ def soyjak_mentions_task(): for thing in data: text = f'

{thing["comment"]}

' - if 'erdrama' in text: continue + if 'erdrama' in text.lower(): continue permalink = thing['url'] text = f'New site mention\n\n{permalink}\n\n{text}' created_utc = int(time.mktime(time.strptime(thing['date'].split('.')[0], "%Y-%m-%dT%H:%M:%S")))