From 7df4277e17956cf24bc215d96c846e66e457bc68 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 17 Feb 2024 19:50:16 +0200 Subject: [PATCH] fix error --- files/helpers/lemmy_mentions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/lemmy_mentions.py b/files/helpers/lemmy_mentions.py index 1eaf15683..66799b841 100644 --- a/files/helpers/lemmy_mentions.py +++ b/files/helpers/lemmy_mentions.py @@ -24,7 +24,7 @@ def lemmy_mentions_task(): title = thing["name"] text = f'

{title}

' - if thing["body"]: + if thing.get("body"): selftext = thing["body"][:5000] text += f'

{selftext}

'