forked from indymedia/epicyon
Retain news link on date
parent
8b222151c6
commit
52626eb564
|
@ -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)
|
||||
|
|
|
@ -5053,7 +5053,10 @@ def individualPostAsHtml(allowDownloads: bool,
|
|||
if timeDiff > 100:
|
||||
print('TIMING INDIV ' + boxName + ' 15 = ' + str(timeDiff))
|
||||
|
||||
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?
|
||||
|
|
Loading…
Reference in New Issue