main
Bob Mottram 2020-09-30 22:53:10 +01:00
parent 03e85899f0
commit 280c75f0ce
1 changed files with 19 additions and 10 deletions

View File

@ -4296,13 +4296,15 @@ def individualPostAsHtml(allowDownloads: bool,
else: else:
if isDM(postJsonObject): if isDM(postJsonObject):
replyStr += \ replyStr += \
' <a class="imageAnchor" href="/users/' + nickname + \ ' ' + \
'<a class="imageAnchor" href="/users/' + nickname + \
'?replydm=' + replyToLink + \ '?replydm=' + replyToLink + \
'?actor=' + postJsonObject['actor'] + \ '?actor=' + postJsonObject['actor'] + \
'" title="' + translate['Reply to this post'] + '">\n' '" title="' + translate['Reply to this post'] + '">\n'
else: else:
replyStr += \ replyStr += \
' <a class="imageAnchor" href="/users/' + nickname + \ ' ' + \
'<a class="imageAnchor" href="/users/' + nickname + \
'?replyfollowers=' + replyToLink + \ '?replyfollowers=' + replyToLink + \
'?actor=' + postJsonObject['actor'] + \ '?actor=' + postJsonObject['actor'] + \
'" title="' + translate['Reply to this post'] + '">\n' '" title="' + translate['Reply to this post'] + '">\n'
@ -4334,7 +4336,8 @@ def individualPostAsHtml(allowDownloads: bool,
if isBlogPost(postJsonObject): if isBlogPost(postJsonObject):
blogPostId = postJsonObject['object']['id'] blogPostId = postJsonObject['object']['id']
editStr += \ editStr += \
' <a class="imageAnchor" href="/users/' + nickname + \ ' ' + \
'<a class="imageAnchor" href="/users/' + nickname + \
'/tlblogs?editblogpost=' + \ '/tlblogs?editblogpost=' + \
blogPostId.split('/statuses/')[1] + \ blogPostId.split('/statuses/')[1] + \
'?actor=' + actorNickname + \ '?actor=' + actorNickname + \
@ -4346,7 +4349,8 @@ def individualPostAsHtml(allowDownloads: bool,
elif isEvent: elif isEvent:
eventPostId = postJsonObject['object']['id'] eventPostId = postJsonObject['object']['id']
editStr += \ editStr += \
' <a class="imageAnchor" href="/users/' + nickname + \ ' ' + \
'<a class="imageAnchor" href="/users/' + nickname + \
'/tlblogs?editeventpost=' + \ '/tlblogs?editeventpost=' + \
eventPostId.split('/statuses/')[1] + \ eventPostId.split('/statuses/')[1] + \
'?actor=' + actorNickname + \ '?actor=' + actorNickname + \
@ -4597,7 +4601,8 @@ def individualPostAsHtml(allowDownloads: bool,
' 13.3.1 = ' + str(timeDiff)) ' 13.3.1 = ' + str(timeDiff))
titleStr += \ titleStr += \
' <img loading="lazy" title="' + \ ' ' + \
'<img loading="lazy" title="' + \
translate['announces'] + '" alt="' + \ translate['announces'] + '" alt="' + \
translate['announces'] + '" src="/' + \ translate['announces'] + '" src="/' + \
iconsDir + '/repeat_inactive.png" ' + \ iconsDir + '/repeat_inactive.png" ' + \
@ -4660,7 +4665,8 @@ def individualPostAsHtml(allowDownloads: bool,
'">@unattributed</a>\n' '">@unattributed</a>\n'
else: else:
titleStr += \ titleStr += \
' <img loading="lazy" title="' + translate['announces'] + \ ' ' + \
'<img loading="lazy" title="' + translate['announces'] + \
'" alt="' + translate['announces'] + \ '" alt="' + translate['announces'] + \
'" src="/' + iconsDir + \ '" src="/' + iconsDir + \
'/repeat_inactive.png" ' + \ '/repeat_inactive.png" ' + \
@ -4722,7 +4728,8 @@ def individualPostAsHtml(allowDownloads: bool,
boxName + ' 13.6 = ' + boxName + ' 13.6 = ' +
str(timeDiff)) str(timeDiff))
titleStr += \ titleStr += \
' <img loading="lazy" title="' + \ ' ' + \
'<img loading="lazy" title="' + \
translate['replying to'] + \ translate['replying to'] + \
'" alt="' + \ '" alt="' + \
translate['replying to'] + \ translate['replying to'] + \
@ -4783,7 +4790,8 @@ def individualPostAsHtml(allowDownloads: bool,
inReplyTo = \ inReplyTo = \
postJsonObject['object']['inReplyTo'] postJsonObject['object']['inReplyTo']
titleStr += \ titleStr += \
' <img loading="lazy" title="' + \ ' ' + \
'<img loading="lazy" title="' + \
translate['replying to'] + \ translate['replying to'] + \
'" alt="' + \ '" alt="' + \
translate['replying to'] + \ translate['replying to'] + \
@ -4982,7 +4990,8 @@ def individualPostAsHtml(allowDownloads: bool,
else: else:
if not isPatch: if not isPatch:
contentStr = ' <div class="message">' + \ contentStr = ' <div class="message">' + \
contentStr + '</div>\n' contentStr + \
' </div>\n'
else: else:
contentStr = \ contentStr = \
'<div class="gitpatch"><pre><code>' + contentStr + \ '<div class="gitpatch"><pre><code>' + contentStr + \
@ -5350,7 +5359,7 @@ def htmlTimeline(defaultTimeline: str,
tlStr += ' <div class="column-left">\n' tlStr += ' <div class="column-left">\n'
tlStr += ' </div>\n' tlStr += ' </div>\n'
tlStr += ' <div class="column-center">\n' tlStr += ' <div class="column-center">\n'
# start of the button header with inbox, outbox, etc # start of the button header with inbox, outbox, etc
tlStr += ' <div class="container">\n' tlStr += ' <div class="container">\n'
# first button # first button