From 0c2d77da35e5af6e1ed5bb337a1ac6f0300613c1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Aug 2019 21:21:25 +0100 Subject: [PATCH] CW functionality on individual posts --- webinterface.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index b7350a7e..3e854dbf 100644 --- a/webinterface.py +++ b/webinterface.py @@ -579,7 +579,10 @@ def individualPostAsHtml(baseDir: str, \ timeClass='time-right' actorNickname=getNicknameFromActor(postJsonObject['actor']) actorDomain,actorPort=getDomainFromActor(postJsonObject['actor']) - titleStr+='@'+actorNickname+'@'+actorDomain + messageId='' + if postJsonObject.get('id'): + messageId=postJsonObject['id'].replace('/activity','') + titleStr+='@'+actorNickname+'@'+actorDomain+'' if postJsonObject['object']['inReplyTo']: containerClassIcons='containericons darker' containerClass='container darker' @@ -800,7 +803,8 @@ def htmlIndividualPost(baseDir: str,session,wfRequest: {},personCache: {}, \ postJsonObject: {}) -> str: """Show an individual post as html """ - postStr= \ + postStr='' + postStr+= \ individualPostAsHtml(baseDir,session,wfRequest,personCache, \ nickname,domain,port,postJsonObject,None,True,False) messageId=postJsonObject['id'].replace('/activity','')