Move context for actor updates

merge-requests/30/head
Bob Mottram 2020-12-17 21:48:40 +00:00
parent f17c601c88
commit 0a9fd492d3
1 changed files with 5 additions and 0 deletions

View File

@ -4520,7 +4520,12 @@ class PubServer(BaseHTTPRequestHandler):
pubStr = 'https://www.w3.org/ns/' + \
'activitystreams#Public'
pubNumber, pubDate = getStatusNumber()
pubContext = actorJson['@context'].copy()
# remove the context from the actor json and put it
# at the start of the Upgrade activity
del actorJson['@context']
updateActorJson = {
'@context': pubContext,
'id': actorJson['id'] + '#updates/' + pubNumber,
'type': 'Update',
'actor': actorJson['id'],