From 2c32fdcae6af6d31b2085acc2775c1b3a89923f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 13:48:55 +0100 Subject: [PATCH] Wrap announce in create --- webinterface.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webinterface.py b/webinterface.py index 0c358996..4db06141 100644 --- a/webinterface.py +++ b/webinterface.py @@ -26,6 +26,7 @@ from posts import getUserUrl from posts import parseUserFeed from posts import populateRepliesJson from posts import isModerator +from posts import outboxMessageCreateWrap from session import getJson from auth import createPassword from like import likedByPerson @@ -1041,6 +1042,12 @@ def individualPostAsHtml(baseDir: str, \ return '' if not announcedJson.get('type'): return '' + if announcedJson['type']=='Note': + # wrap in create to be consistent with other posts + announcedJson= \ + outboxMessageCreateWrap(httpPrefix, \ + nickname,domain,port, \ + announcedJson) if announcedJson['type']!='Create': return '' actorNickname=getNicknameFromActor(postJsonObject['actor'])