forked from rDrama/rDrama
fix reddit offsite mentions
parent
df9b684354
commit
2a4ff1b598
|
@ -61,7 +61,7 @@ def reddit_mentions_task():
|
||||||
text += f'<br><blockquote><p>{selftext}</p></blockquote>'
|
text += f'<br><blockquote><p>{selftext}</p></blockquote>'
|
||||||
|
|
||||||
author_string = f"/u/{thing['author']}"
|
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}'
|
text = f'New site mention by {author_string}\n\n{permalink}\n\n{text}'
|
||||||
created_utc = thing['created_utc']
|
created_utc = thing['created_utc']
|
||||||
if notify(text, created_utc) == 1: break
|
if notify(text, created_utc) == 1: break
|
||||||
|
|
Loading…
Reference in New Issue