Default nickname for single user instance

main2
Bob Mottram 2019-10-21 11:07:44 +01:00
parent d22faa6f38
commit 54cac45766
1 changed files with 3 additions and 0 deletions

View File

@ -1817,6 +1817,9 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
containerClassIcons='containericons' containerClassIcons='containericons'
timeClass='time-right' timeClass='time-right'
actorNickname=getNicknameFromActor(postJsonObject['actor']) actorNickname=getNicknameFromActor(postJsonObject['actor'])
if not actorNickname:
# single user instance
actorNickname='dev'
actorDomain,actorPort=getDomainFromActor(postJsonObject['actor']) actorDomain,actorPort=getDomainFromActor(postJsonObject['actor'])
messageId='' messageId=''
if postJsonObject.get('id'): if postJsonObject.get('id'):