From 0a9fd492d356683219eb0b4e9e235143b44ee4af Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 17 Dec 2020 21:48:40 +0000 Subject: [PATCH] Move context for actor updates --- daemon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon.py b/daemon.py index 1aada2b2..2ba1f3c7 100644 --- a/daemon.py +++ b/daemon.py @@ -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'],