fix error

master
Aevann 2024-02-17 19:50:16 +02:00
parent a8f6ca4409
commit 7df4277e17
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def lemmy_mentions_task():
title = thing["name"] title = thing["name"]
text = f'<blockquote><p>{title}</p></blockquote>' text = f'<blockquote><p>{title}</p></blockquote>'
if thing["body"]: if thing.get("body"):
selftext = thing["body"][:5000] selftext = thing["body"][:5000]
text += f'<br><blockquote><p>{selftext}</p></blockquote>' text += f'<br><blockquote><p>{selftext}</p></blockquote>'