fix mentions

pull/225/head
Aevann 2024-03-24 19:34:59 +02:00
parent 7e59a34f75
commit 60094a22cd
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ def lemmy_mentions_task():
selftext = thing["body"][:5000]
text += f'<br><blockquote><p>{selftext}</p></blockquote>'
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'<blockquote><p>{thing["comment"]}</p></blockquote>'
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")))