Reply to self

main2
Bob Mottram 2019-09-24 11:09:35 +01:00
parent fd8f2c569f
commit 5be718fc0f
1 changed files with 20 additions and 17 deletions

View File

@ -1809,6 +1809,9 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
containerClassIcons='containericons darker' containerClassIcons='containericons darker'
containerClass='container darker' containerClass='container darker'
#avatarPosition=' class="right"' #avatarPosition=' class="right"'
if postJsonObject['object']['inReplyTo'].startswith(postJsonObject['actor']):
titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/>'
else:
if '/statuses/' in postJsonObject['object']['inReplyTo']: if '/statuses/' in postJsonObject['object']['inReplyTo']:
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo']) replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
if replyNickname: if replyNickname: