From 545f5d0523d026396204aa37b5ef0be651303604 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 Jan 2021 14:56:41 +0000 Subject: [PATCH] Set id on pinned post json --- daemon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon.py b/daemon.py index 4941280fc..29d7820ac 100644 --- a/daemon.py +++ b/daemon.py @@ -10170,6 +10170,11 @@ class PubServer(BaseHTTPRequestHandler): self.server.domain, self.server.port, pinnedPostJson) + messageJson['id'] = pinnedPostJson['id'] + '/activity' + messageJson['object']['id'] = pinnedPostJson['id'] + messageJson['object']['url'] = \ + pinnedPostJson['id'].replace('/users/', '/@') + messageJson['object']['atomUri'] = pinnedPostJson['id'] msg = json.dumps(messageJson, ensure_ascii=False).encode('utf-8') msglen = len(msg)