Create tag list if needed

main2
Bob Mottram 2019-10-04 15:38:18 +01:00
parent 542f3267a1
commit 5613afb3d8
1 changed files with 2 additions and 0 deletions

View File

@ -1308,6 +1308,8 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
if not postJsonObject['object']['content'].startswith(senderStr): if not postJsonObject['object']['content'].startswith(senderStr):
postJsonObject['object']['content']=senderStr+' '+postJsonObject['object']['content'] postJsonObject['object']['content']=senderStr+' '+postJsonObject['object']['content']
# add mention to tag list # add mention to tag list
if not postJsonObject['object']['tag']:
postJsonObject['object']['tag']=[]
postJsonObject['object']['tag'].append({ postJsonObject['object']['tag'].append({
'href': sendingActor, 'href': sendingActor,
'name': senderStr, 'name': senderStr,