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?',
|
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)
|
||||||
|
|
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue