From 5ea0c88229f4968175a22448fb8f9d28a68dc7b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 Jul 2019 19:18:06 +0100 Subject: [PATCH] List --- acceptreject.py | 2 +- posts.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/acceptreject.py b/acceptreject.py index 983f3105b..93a373f0b 100644 --- a/acceptreject.py +++ b/acceptreject.py @@ -46,7 +46,7 @@ def createAcceptReject(baseDir: str,federationList: [], \ } if ccUrl: if len(ccUrl)>0: - newAccept['cc']=ccUrl + newAccept['cc']=[ccUrl] # attach capabilities for follow accept if ocapJson: newAccept['capabilities']=ocapJson diff --git a/posts.py b/posts.py index 51a02ec2e..548afc526 100644 --- a/posts.py +++ b/posts.py @@ -477,9 +477,9 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \ imageDescription,useBlurhash) if ccUrl: if len(ccUrl)>0: - newPost['cc']=ccUrl + newPost['cc']=[ccUrl] if newPost.get('object'): - newPost['object']['cc']=ccUrl + newPost['object']['cc']=[ccUrl] if saveToFile: savePostToBox(baseDir,httpPrefix,newPostId, \ nickname,domain,newPost,'outbox') @@ -962,15 +962,12 @@ def sendToNamedAddresses(session,baseDir: str, \ recipients=[] recipientType=['to','cc'] for rType in recipientType: - print('==== rType: '+rType) for address in recipientsObject[rType]: - print('==== address: '+address) if address.endswith('#Public'): continue if address.endswith('/followers'): continue recipients.append(address) - print('==== recipients: '+str(recipients)) if not recipients: return if debug: