fix reddit notif spam

remotes/1693045480750635534/spooky-22
Aevann1 2022-07-12 00:55:40 +02:00
parent ffc8f28843
commit 5ed43762aa
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def notify_mentions(send_to, mentions, mention_str='site mention'):
for m in mentions:
author = m['author']
permalink = m['permalink']
text = sanitize(m['text'])
text = sanitize(m['text'], edit=True)
notif_text = \
f"""<p>New {mention_str} by <a href="https://old.reddit.com/u/{author}" rel="nofollow noopener noreferrer" target="_blank">/u/{author}</a></p><p><a href="https://old.reddit.com{permalink}?context=89" rel="nofollow noopener noreferrer" target="_blank">https://old.reddit.com{permalink}?context=89</a></p>{text}"""