Retain news link on date

main
Bob Mottram 2020-10-08 11:19:48 +01:00
parent 8b222151c6
commit 52626eb564
2 changed files with 5 additions and 1 deletions

View File

@ -6566,6 +6566,7 @@ class PubServer(BaseHTTPRequestHandler):
msg = msg.replace('/users/news?', msg = msg.replace('/users/news?',
'/users/' + currNickname + '?') '/users/' + currNickname + '?')
msg = msg.replace('/banner.webp', '/banner.png') msg = msg.replace('/banner.webp', '/banner.png')
msg = msg.replace('/news2/', '/news/')
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)

View File

@ -5053,7 +5053,10 @@ def individualPostAsHtml(allowDownloads: bool,
if timeDiff > 100: if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 15 = ' + str(timeDiff)) print('TIMING INDIV ' + boxName + ' 15 = ' + str(timeDiff))
publishedLink = messageId if '/users/news/' not in messageId:
publishedLink = messageId
else:
publishedLink = messageId.replace('/users/news/', '/users/news2/')
# blog posts should have no /statuses/ in their link # blog posts should have no /statuses/ in their link
if isBlogPost(postJsonObject): if isBlogPost(postJsonObject):
# is this a post to the local domain? # is this a post to the local domain?