Check for colon in display name

main2
Bob Mottram 2019-09-23 11:11:13 +01:00
parent d2344663f6
commit 7dd794b531
2 changed files with 8 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1743,6 +1743,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
displayName=getDisplayName(postJsonObject['actor'],personCache)
if displayName:
if ':' in displayName:
displayName= \
addHtmlTags(baseDir,httpPrefix, \
nickname,domain,displayName,[],{})
@ -1868,6 +1869,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if avatarUrl2:
avatarUrl=avatarUrl2
if displayName:
if ':' in displayName:
displayName= \
addHtmlTags(baseDir,httpPrefix, \
nickname,domain,displayName,[],{})