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

@ -2210,7 +2210,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if showAvatarOptions and fullDomain+'/users/'+nickname not in postActor: if showAvatarOptions and fullDomain+'/users/'+nickname not in postActor:
avatarLink=' <a href="/users/'+nickname+'?options='+postActor+';'+str(pageNumber)+';'+avatarUrl+messageIdStr+'">' avatarLink=' <a href="/users/'+nickname+'?options='+postActor+';'+str(pageNumber)+';'+avatarUrl+messageIdStr+'">'
avatarLink+=' <img loading="lazy" title="'+translate['Show options for this person']+'" src="'+avatarUrl+'" '+avatarPosition+'/></a>' avatarLink+=' <img loading="lazy" title="'+translate['Show options for this person']+'" src="'+avatarUrl+'" '+avatarPosition+'/></a>'
avatarImageInPost= ' <div class="timeline-avatar">'+avatarLink+'</div>' avatarImageInPost=' <div class="timeline-avatar">'+avatarLink+'</div>'
# don't create new html within the bookmarks timeline # don't create new html within the bookmarks timeline
# it should already have been created for the inbox # it should already have been created for the inbox
@ -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: