make reddit notifications look neater

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-23 01:16:59 +02:00
parent 7e6e04b231
commit 262138b542
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ def get_mentions(queries):
if kind == 'comment':
text = f'<blockquote>{i["body"]}</blockquote>'
else:
text = f'<blockquote>{i["title"]}</blockquote><br><blockquote>{i["selftext"][:5000]}</blockquote>'
text = f'<blockquote>{i["title"]}</blockquote>'
if i["selftext"]: text += f'<br><blockquote>{i["selftext"][:5000]}</blockquote>'
mentions.append({
'permalink': i['permalink'],