diff --git a/files/routes/posts.py b/files/routes/posts.py index 2b4e113eb..880882aed 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -718,7 +718,7 @@ def thumbnail_thread(pid): if i["subreddit"] == 'PokemonGoRaids': continue - body_html = sanitize(f'New site mention: https://old.reddit.com{i["permalink"]}?context=89') + body_html = f'''

New site mention: https://old.reddit.com{i["permalink"]}?context=89

''' existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, body_html=body_html).one_or_none() if existing_comment: break @@ -746,7 +746,8 @@ def thumbnail_thread(pid): except: break for i in data: - body_html = sanitize(f'New mention of you: https://old.reddit.com{i["permalink"]}?context=89') + + body_html = f'''

New mention of you: https://old.reddit.com{i["permalink"]}?context=89

''' existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None,body_html=body_html).one_or_none() if existing_comment: break @@ -775,7 +776,7 @@ def thumbnail_thread(pid): except: break for i in data: - body_html = sanitize(f'New site mention: https://old.reddit.com{i["permalink"]}?context=89') + body_html = f'''

New site mention: https://old.reddit.com{i["permalink"]}?context=89

''' existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, body_html=body_html).one_or_none()