Without div

main2
Bob Mottram 2019-09-24 12:11:45 +01:00
parent 5aca1d4999
commit fc435375fb
1 changed files with 5 additions and 4 deletions

View File

@ -1822,14 +1822,15 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if replyDisplayName: if replyDisplayName:
titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">'+replyDisplayName+'</a>' titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">'+replyDisplayName+'</a>'
# show avatar of person replied to
replyActor=postJsonObject['object']['inReplyTo'].split('/statuses/')[0] replyActor=postJsonObject['object']['inReplyTo'].split('/statuses/')[0]
replyAvatarUrl=getPersonAvatarUrl(baseDir,replyActor,personCache) replyAvatarUrl=getPersonAvatarUrl(baseDir,replyActor,personCache)
if replyAvatarUrl: if replyAvatarUrl:
replyAvatarImageInPost= \ replyAvatarImageInPost= \
' <div class="timeline-avatar">' \ '<a href="'+replyActor+'">' \
' <a href="'+replyActor+'">' \ '<img src="'+replyAvatarUrl+'" ' \
' <img src="'+replyAvatarUrl+'" title="'+translate['Show profile']+'" alt="Avatar"'+avatarPosition+'/></a>' \ 'title="'+translate['Show profile']+ \
' </div>' '" alt="Avatar"'+avatarPosition+'/></a>'
else: else:
titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>' titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
else: else: