mirror of https://gitlab.com/bashrc2/epicyon
List
parent
13a58150ff
commit
5ea0c88229
|
@ -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
|
||||
|
|
7
posts.py
7
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:
|
||||
|
|
Loading…
Reference in New Issue