mirror of https://gitlab.com/bashrc2/epicyon
List
parent
13a58150ff
commit
5ea0c88229
|
@ -46,7 +46,7 @@ def createAcceptReject(baseDir: str,federationList: [], \
|
||||||
}
|
}
|
||||||
if ccUrl:
|
if ccUrl:
|
||||||
if len(ccUrl)>0:
|
if len(ccUrl)>0:
|
||||||
newAccept['cc']=ccUrl
|
newAccept['cc']=[ccUrl]
|
||||||
# attach capabilities for follow accept
|
# attach capabilities for follow accept
|
||||||
if ocapJson:
|
if ocapJson:
|
||||||
newAccept['capabilities']=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)
|
imageDescription,useBlurhash)
|
||||||
if ccUrl:
|
if ccUrl:
|
||||||
if len(ccUrl)>0:
|
if len(ccUrl)>0:
|
||||||
newPost['cc']=ccUrl
|
newPost['cc']=[ccUrl]
|
||||||
if newPost.get('object'):
|
if newPost.get('object'):
|
||||||
newPost['object']['cc']=ccUrl
|
newPost['object']['cc']=[ccUrl]
|
||||||
if saveToFile:
|
if saveToFile:
|
||||||
savePostToBox(baseDir,httpPrefix,newPostId, \
|
savePostToBox(baseDir,httpPrefix,newPostId, \
|
||||||
nickname,domain,newPost,'outbox')
|
nickname,domain,newPost,'outbox')
|
||||||
|
@ -962,15 +962,12 @@ def sendToNamedAddresses(session,baseDir: str, \
|
||||||
recipients=[]
|
recipients=[]
|
||||||
recipientType=['to','cc']
|
recipientType=['to','cc']
|
||||||
for rType in recipientType:
|
for rType in recipientType:
|
||||||
print('==== rType: '+rType)
|
|
||||||
for address in recipientsObject[rType]:
|
for address in recipientsObject[rType]:
|
||||||
print('==== address: '+address)
|
|
||||||
if address.endswith('#Public'):
|
if address.endswith('#Public'):
|
||||||
continue
|
continue
|
||||||
if address.endswith('/followers'):
|
if address.endswith('/followers'):
|
||||||
continue
|
continue
|
||||||
recipients.append(address)
|
recipients.append(address)
|
||||||
print('==== recipients: '+str(recipients))
|
|
||||||
if not recipients:
|
if not recipients:
|
||||||
return
|
return
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue