mirror of https://gitlab.com/bashrc2/epicyon
Separate public check
parent
2b13c7646c
commit
a20003360a
20
posts.py
20
posts.py
|
@ -1458,13 +1458,19 @@ def _createPostBase(baseDir: str,
|
||||||
for ccRemoval in removeFromCC:
|
for ccRemoval in removeFromCC:
|
||||||
toCC.remove(ccRemoval)
|
toCC.remove(ccRemoval)
|
||||||
|
|
||||||
if inReplyTo and isPublic:
|
if inReplyTo:
|
||||||
# If this is a public post then get the actor being
|
isPublic = False
|
||||||
# replied to end ensure that it is within the CC list
|
for recipient in toRecipients:
|
||||||
replyActor = _getActorFromInReplyTo(inReplyTo)
|
if recipient.endswith('#Public'):
|
||||||
if replyActor:
|
isPublic = True
|
||||||
if replyActor not in toCC:
|
break
|
||||||
toCC.append(replyActor)
|
if isPublic:
|
||||||
|
# If this is a public post then get the actor being
|
||||||
|
# replied to end ensure that it is within the CC list
|
||||||
|
replyActor = _getActorFromInReplyTo(inReplyTo)
|
||||||
|
if replyActor:
|
||||||
|
if replyActor not in toCC:
|
||||||
|
toCC.append(replyActor)
|
||||||
|
|
||||||
# the type of post to be made
|
# the type of post to be made
|
||||||
postObjectType = 'Note'
|
postObjectType = 'Note'
|
||||||
|
|
Loading…
Reference in New Issue