fix reddit offsite mentions

pull/225/head
Aevann 2024-02-24 23:44:44 +02:00
parent df9b684354
commit 2a4ff1b598
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def reddit_mentions_task():
text += f'<br><blockquote><p>{selftext}</p></blockquote>'
author_string = f"/u/{thing['author']}"
permalink = thing['permalink']
permalink = 'https://old.reddit.com' + thing['permalink']
text = f'New site mention by {author_string}\n\n{permalink}\n\n{text}'
created_utc = thing['created_utc']
if notify(text, created_utc) == 1: break