diff --git a/webinterface.py b/webinterface.py index 99553e79a..6528b6a6c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5583,6 +5583,27 @@ def individualPostAsHtml(allowDownloads: bool, '
' + contentStr + \
                 '
\n' + # show blog citations + citationsStr = '' + if boxName == 'tlblog': + if postJsonObject['object'].get('tag'): + for tagJson in postJsonObject['object']['tag']: + if not tagJson.get('type'): + continue + if tagJson['type'] != 'Article': + continue + if not tagJson.get('name'): + continue + if not tagJson.get('url'): + continue + citationsStr += \ + '
  • ' + \ + '' + tagJson['name'] + '
  • \n' + if citationsStr: + citationsStr = '

    ' + translate['Citations'] + \ + ':

    ' + \ + '\n' + postHtml = '' if boxName != 'tlmedia': postHtml = '
    \n' + \ ' ' + titleStr + \ replyAvatarImageInPost + '
    \n' - postHtml += contentStr + footerStr + '\n' + postHtml += contentStr + citationsStr + footerStr + '\n' postHtml += ' \n' else: postHtml = galleryStr