mirror of https://gitlab.com/bashrc2/epicyon
Detect post recipients
parent
600b468409
commit
c593aca45d
10
posts.py
10
posts.py
|
@ -1338,13 +1338,23 @@ def sendToNamedAddresses(session,baseDir: str, \
|
||||||
for rType in recipientType:
|
for rType in recipientType:
|
||||||
if not recipientsObject.get(rType):
|
if not recipientsObject.get(rType):
|
||||||
continue
|
continue
|
||||||
|
if isinstance(recipientsObject[rType], list):
|
||||||
for address in recipientsObject[rType]:
|
for address in recipientsObject[rType]:
|
||||||
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)
|
||||||
|
elif isinstance(recipientsObject[rType], str):
|
||||||
|
address=recipientsObject[rType]
|
||||||
|
if address.endswith('#Public'):
|
||||||
|
continue
|
||||||
|
if address.endswith('/followers'):
|
||||||
|
continue
|
||||||
|
recipients.append(address)
|
||||||
if not recipients:
|
if not recipients:
|
||||||
|
if debug:
|
||||||
|
print('DEBUG: no individual recipients')
|
||||||
return
|
return
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Sending individually addressed posts: '+str(recipients))
|
print('DEBUG: Sending individually addressed posts: '+str(recipients))
|
||||||
|
|
Loading…
Reference in New Issue