forked from indymedia/epicyon
Tidying
parent
409bc2103b
commit
45a2844855
9
posts.py
9
posts.py
|
@ -756,14 +756,12 @@ def postIsAddressedToFollowers(baseDir: str,
|
||||||
ccList=[]
|
ccList=[]
|
||||||
if postJsonObject['type']!='Update' and \
|
if postJsonObject['type']!='Update' and \
|
||||||
isinstance(postJsonObject['object'], dict):
|
isinstance(postJsonObject['object'], dict):
|
||||||
if not postJsonObject['object'].get('to'):
|
if postJsonObject['object'].get('to'):
|
||||||
return False
|
|
||||||
toList=postJsonObject['object']['to']
|
toList=postJsonObject['object']['to']
|
||||||
if postJsonObject['object'].get('cc'):
|
if postJsonObject['object'].get('cc'):
|
||||||
ccList=postJsonObject['object']['cc']
|
ccList=postJsonObject['object']['cc']
|
||||||
else:
|
else:
|
||||||
if not postJsonObject.get('to'):
|
if postJsonObject.get('to'):
|
||||||
return False
|
|
||||||
toList=postJsonObject['to']
|
toList=postJsonObject['to']
|
||||||
if postJsonObject.get('cc'):
|
if postJsonObject.get('cc'):
|
||||||
ccList=postJsonObject['cc']
|
ccList=postJsonObject['cc']
|
||||||
|
@ -774,8 +772,7 @@ def postIsAddressedToFollowers(baseDir: str,
|
||||||
addressedToFollowers=False
|
addressedToFollowers=False
|
||||||
if followersUrl in toList:
|
if followersUrl in toList:
|
||||||
addressedToFollowers=True
|
addressedToFollowers=True
|
||||||
if not addressedToFollowers:
|
elif followersUrl in ccList:
|
||||||
if followersUrl in ccList:
|
|
||||||
addressedToFollowers=True
|
addressedToFollowers=True
|
||||||
return addressedToFollowers
|
return addressedToFollowers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue