Add followers

merge-requests/30/head
Bob Mottram 2020-12-18 11:11:52 +00:00
parent d8d6751c2f
commit ef72b93984
1 changed files with 1 additions and 1 deletions

View File

@ -4543,13 +4543,13 @@ class PubServer(BaseHTTPRequestHandler):
# remove the context from the actor json and put it # remove the context from the actor json and put it
# at the start of the Upgrade activity # at the start of the Upgrade activity
del actorJson['@context'] del actorJson['@context']
# NOTE: there is deliberately no cc here
updateActorJson = { updateActorJson = {
'@context': pubContext, '@context': pubContext,
'id': actorJson['id'] + '#updates/' + pubNumber, 'id': actorJson['id'] + '#updates/' + pubNumber,
'type': 'Update', 'type': 'Update',
'actor': actorJson['id'], 'actor': actorJson['id'],
'to': [pubStr], 'to': [pubStr],
'cc': [actorJson['id'] + '/followers'],
'object': actorJson 'object': actorJson
} }
print('Sending actor update: ' + str(updateActorJson)) print('Sending actor update: ' + str(updateActorJson))