diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index 4e45f71bef..6865d97fdc 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -43,9 +43,14 @@ def get_mentions(queries): # Special case: PokemonGoRaids says 'Marsey' a lot unrelated to us. if i['subreddit'] == 'PokemonGoRaids': continue + if kind == 'comment': + text = f'
{i["body"]}' + else: + text = f'
{i["title"]}
{i["selftext"][:5000]}' + mentions.append({ 'permalink': i['permalink'], - 'text': i['body' if kind == 'comment' else 'title'], + 'text': text, }) return mentions @@ -57,8 +62,7 @@ def notify_mentions(send_to, mentions, mention_str='site mention'): notif_text = \ f'
New {mention_str}: ' \ - f'https://old.reddit.com{permalink}?context=89
' \ - f'{text}' + f'https://old.reddit.com{permalink}?context=89{text}' \ existing_comment = g.db.query(Comment.id).filter_by( author_id=const.NOTIFICATIONS_ID,