From de2b514734660b8059a5f93637c1c6cb04cbe0d7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 13:51:13 +0100 Subject: [PATCH] Use get --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 4db06141..9ff65b81 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1075,7 +1075,7 @@ def individualPostAsHtml(baseDir: str, \ if postJsonObject.get('id'): messageId=postJsonObject['id'].replace('/activity','') titleStr+='@'+actorNickname+'@'+actorDomain+'' - if postJsonObject['object']['inReplyTo']: + if postJsonObject['object'].get('inReplyTo'): containerClassIcons='containericons darker' containerClass='container darker' avatarPosition=' class="right"'