From a2796e405ff8a25d544b4bd55d59c6695d85b9d1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 17 Dec 2020 21:25:20 +0000 Subject: [PATCH] Add an id to actor updates --- daemon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index e6dcec2b6..1b27a6f8f 100644 --- a/daemon.py +++ b/daemon.py @@ -4517,13 +4517,15 @@ class PubServer(BaseHTTPRequestHandler): actorJson['id'].replace('/', '#') + '.json' saveJson(actorJson, actorCacheFilename) # send profile update to followers - ccStr = 'https://www.w3.org/ns/' + \ + pubStr = 'https://www.w3.org/ns/' + \ 'activitystreams#Public' + pubNumber, pubDate = getStatusNumber() updateActorJson = { + 'id': actorJson['id'] + '#updates/' + pubNumber, 'type': 'Update', 'actor': actorJson['id'], - 'to': [actorJson['id'] + '/followers'], - 'cc': [ccStr], + 'to': [pubStr], + 'cc': [actorJson['id'] + '/followers'], 'object': actorJson } self._postToOutbox(updateActorJson,