diff --git a/daemon.py b/daemon.py index 278670d5..37401417 100644 --- a/daemon.py +++ b/daemon.py @@ -6566,6 +6566,7 @@ class PubServer(BaseHTTPRequestHandler): msg = msg.replace('/users/news?', '/users/' + currNickname + '?') msg = msg.replace('/banner.webp', '/banner.png') + msg = msg.replace('/news2/', '/news/') msg = msg.encode('utf-8') self._set_headers('text/html', len(msg), cookie, callingDomain) diff --git a/webinterface.py b/webinterface.py index 392b78c8..e93be3aa 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5053,7 +5053,10 @@ def individualPostAsHtml(allowDownloads: bool, if timeDiff > 100: 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 if isBlogPost(postJsonObject): # is this a post to the local domain?