forked from rDrama/rDrama
make reddit notifications look neater
parent
7e6e04b231
commit
262138b542
|
@ -46,7 +46,8 @@ def get_mentions(queries):
|
||||||
if kind == 'comment':
|
if kind == 'comment':
|
||||||
text = f'<blockquote>{i["body"]}</blockquote>'
|
text = f'<blockquote>{i["body"]}</blockquote>'
|
||||||
else:
|
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({
|
mentions.append({
|
||||||
'permalink': i['permalink'],
|
'permalink': i['permalink'],
|
||||||
|
|
Loading…
Reference in New Issue