Include statuses

main
Bob Mottram 2020-10-11 12:29:07 +01:00
parent 28ddaa58d1
commit ac6ad37c74
1 changed files with 15 additions and 4 deletions

View File

@ -5166,8 +5166,13 @@ def individualPostAsHtml(allowDownloads: bool,
domain + ':' + str(port) + '/users/' in publishedLink: domain + ':' + str(port) + '/users/' in publishedLink:
publishedLink = '/users/' + publishedLink.split('/users/')[1] publishedLink = '/users/' + publishedLink.split('/users/')[1]
footerStr = '<a href="' + publishedLink + \ if not isNewsPost(postJsonObject):
'" class="' + timeClass + '">' + publishedStr + '</a>\n' footerStr = '<a href="' + publishedLink + \
'" class="' + timeClass + '">' + publishedStr + '</a>\n'
else:
footerStr = '<a href="' + \
publishedLink.replace('/news/', '/news/statuses/') + \
'" class="' + timeClass + '">' + publishedStr + '</a>\n'
# change the background color for DMs in inbox timeline # change the background color for DMs in inbox timeline
if showDMicon: if showDMicon:
@ -5178,8 +5183,14 @@ def individualPostAsHtml(allowDownloads: bool,
footerStr = '\n <div class="' + containerClassIcons + '">\n' footerStr = '\n <div class="' + containerClassIcons + '">\n'
footerStr += replyStr + announceStr + likeStr + bookmarkStr + \ footerStr += replyStr + announceStr + likeStr + bookmarkStr + \
deleteStr + muteStr + editStr deleteStr + muteStr + editStr
footerStr += ' <a href="' + publishedLink + '" class="' + \ if not isNewsPost(postJsonObject):
timeClass + '">' + publishedStr + '</a>\n' footerStr += ' <a href="' + publishedLink + '" class="' + \
timeClass + '">' + publishedStr + '</a>\n'
else:
footerStr += ' <a href="' + \
publishedLink.replace('/news/', '/news/statuses/') + \
'" class="' + \
timeClass + '">' + publishedStr + '</a>\n'
footerStr += ' </div>\n' footerStr += ' </div>\n'
postIsSensitive = False postIsSensitive = False