Ensure that mentions appear in cc

main
Bob Mottram 2020-12-13 18:24:25 +00:00
parent 121a24d432
commit 3872426f35
1 changed files with 10 additions and 0 deletions

View File

@ -898,6 +898,16 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
if eventUUID:
postObjectType = 'Event'
# public posts with mentions should include the mentioned
# actors within CC
# "I think we dont notify about mentions unless the person
# is also addressed in to/cc" -- gargron
if toRecipients and toCC and mentionedRecipients:
if len(toRecipients) == 1 and len(toCC) == 1:
if toRecipients[0].endswith('#Public') and \
toCC[0].endswith('/followers'):
toCC += mentionedRecipients
if not clientToServer:
actorUrl = httpPrefix + '://' + domain + '/users/' + nickname