From cf8aacf176bcd2c0fea00a1aad2f3869dbf987e9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 21:17:40 +0100 Subject: [PATCH] Send actor updates --- daemon.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/daemon.py b/daemon.py index 7d9b06542..882004232 100644 --- a/daemon.py +++ b/daemon.py @@ -2258,6 +2258,15 @@ class PubServer(BaseHTTPRequestHandler): if actorChanged: with open(actorFilename, 'w') as fp: commentjson.dump(actorJson, fp, indent=4, sort_keys=False) + # send actor update to followers + updateActorJson={ + 'type': 'Update', + 'actor': actorJson['id'], + 'to': [actorJson['id']+'/followers'], + 'object': actorJson + } + self.postToNickname=nickname + self._postToOutbox(updateActorJson) self._redirect_headers(actorStr,cookie) self.server.POSTbusy=False return