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','')