From 5613afb3d83d4d07fcb5172593287e4ce421b097 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Oct 2019 15:38:18 +0100 Subject: [PATCH] Create tag list if needed --- inbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inbox.py b/inbox.py index 6215941d1..011a58e25 100644 --- a/inbox.py +++ b/inbox.py @@ -1308,6 +1308,8 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject if not postJsonObject['object']['content'].startswith(senderStr): postJsonObject['object']['content']=senderStr+' '+postJsonObject['object']['content'] # add mention to tag list + if not postJsonObject['object']['tag']: + postJsonObject['object']['tag']=[] postJsonObject['object']['tag'].append({ 'href': sendingActor, 'name': senderStr,