forked from indymedia/epicyon
Tidying
parent
03e85899f0
commit
280c75f0ce
|
@ -4296,12 +4296,14 @@ 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'] + \
|
||||||
|
@ -4334,6 +4336,7 @@ 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] + \
|
||||||
|
@ -4346,6 +4349,7 @@ 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] + \
|
||||||
|
@ -4597,6 +4601,7 @@ 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="/' + \
|
||||||
|
@ -4660,6 +4665,7 @@ 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 + \
|
||||||
|
@ -4722,6 +4728,7 @@ 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="' + \
|
||||||
|
@ -4783,6 +4790,7 @@ 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="' + \
|
||||||
|
@ -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 + \
|
||||||
|
|
Loading…
Reference in New Issue