forked from MarseyWorld/MarseyWorld
fix error
parent
a8f6ca4409
commit
7df4277e17
|
@ -24,7 +24,7 @@ def lemmy_mentions_task():
|
|||
title = thing["name"]
|
||||
text = f'<blockquote><p>{title}</p></blockquote>'
|
||||
|
||||
if thing["body"]:
|
||||
if thing.get("body"):
|
||||
selftext = thing["body"][:5000]
|
||||
text += f'<br><blockquote><p>{selftext}</p></blockquote>'
|
||||
|
||||
|
|
Loading…
Reference in New Issue