forked from indymedia/epicyon
cc to individual recipients
parent
fc56f3199d
commit
dd6916b580
11
posts.py
11
posts.py
|
@ -1671,7 +1671,12 @@ def sendToFollowers(session,baseDir: str, \
|
||||||
toDomain=toDomain.split(':')[0]
|
toDomain=toDomain.split(':')[0]
|
||||||
|
|
||||||
cc=''
|
cc=''
|
||||||
if withSharedInbox and postJsonObject['type']!='Update':
|
|
||||||
|
isUpdate=False
|
||||||
|
if postJsonObject['type']=='Update':
|
||||||
|
idUpdate=True
|
||||||
|
|
||||||
|
if withSharedInbox and not isUpdate:
|
||||||
toNickname=followerHandles[index].split('@')[0]
|
toNickname=followerHandles[index].split('@')[0]
|
||||||
|
|
||||||
# if there are more than one followers on the domain
|
# if there are more than one followers on the domain
|
||||||
|
@ -1712,6 +1717,8 @@ def sendToFollowers(session,baseDir: str, \
|
||||||
print('DEBUG: Sending from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
|
print('DEBUG: Sending from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
|
||||||
else:
|
else:
|
||||||
print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
|
print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
|
||||||
|
if isUpdate:
|
||||||
|
postJsonObject['cc']=[httpPrefix+'://'+toDomain+'/users/'+toNickname]
|
||||||
sendSignedJson(postJsonObject,session,baseDir, \
|
sendSignedJson(postJsonObject,session,baseDir, \
|
||||||
nickname,domain,port, \
|
nickname,domain,port, \
|
||||||
toNickname,toDomain,toPort, \
|
toNickname,toDomain,toPort, \
|
||||||
|
@ -1722,7 +1729,7 @@ def sendToFollowers(session,baseDir: str, \
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: End of sendToFollowers')
|
print('DEBUG: End of sendToFollowers')
|
||||||
time.sleep(2)
|
time.sleep(4)
|
||||||
|
|
||||||
def sendToFollowersThread(session,baseDir: str, \
|
def sendToFollowersThread(session,baseDir: str, \
|
||||||
nickname: str, domain: str, port: int, \
|
nickname: str, domain: str, port: int, \
|
||||||
|
|
Loading…
Reference in New Issue