forked from indymedia/epicyon
Without div
parent
5aca1d4999
commit
fc435375fb
|
@ -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+'" title="'+translate['Show profile']+'" alt="Avatar"'+avatarPosition+'/></a>' \
|
'<img src="'+replyAvatarUrl+'" ' \
|
||||||
' </div>'
|
'title="'+translate['Show profile']+ \
|
||||||
|
'" 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:
|
||||||
|
|
Loading…
Reference in New Issue