Separate public check

main
Bob Mottram 2021-12-06 15:43:19 +00:00
parent 2b13c7646c
commit a20003360a
1 changed files with 13 additions and 7 deletions

View File

@ -1458,7 +1458,13 @@ def _createPostBase(baseDir: str,
for ccRemoval in removeFromCC:
toCC.remove(ccRemoval)
if inReplyTo and isPublic:
if inReplyTo:
isPublic = False
for recipient in toRecipients:
if recipient.endswith('#Public'):
isPublic = True
break
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)