master
Bob Mottram 2019-07-19 19:18:06 +01:00
parent 13a58150ff
commit 5ea0c88229
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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: