Post title contains profile link

main
Bob Mottram 2020-01-02 23:04:43 +00:00
parent c257828f8c
commit 16d9dc714f
1 changed files with 3 additions and 3 deletions

View File

@ -2265,7 +2265,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
addEmojiToDisplayName(baseDir,httpPrefix, \ addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \ nickname,domain, \
displayName,False) displayName,False)
titleStr+='<a href="'+messageId+'">'+displayName+'</a>' titleStr+='<a href="'+avatarLink+'">'+displayName+'</a>'
else: else:
if not messageId: if not messageId:
#pprint(postJsonObject) #pprint(postJsonObject)
@ -2276,7 +2276,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if not actorDomain: if not actorDomain:
#pprint(postJsonObject) #pprint(postJsonObject)
print('ERROR: no actorDomain') print('ERROR: no actorDomain')
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>' titleStr+='<a href="'+avatarLink+'">@'+actorNickname+'@'+actorDomain+'</a>'
# Show a DM icon for DMs in the inbox timeline # Show a DM icon for DMs in the inbox timeline
if showDMicon: if showDMicon: