forked from indymedia/epicyon
No date link on news posts
parent
d1f252aed6
commit
585a1340e9
|
@ -6566,7 +6566,6 @@ 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)
|
||||||
|
|
|
@ -5059,17 +5059,17 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
# is this a post to the local domain?
|
# is this a post to the local domain?
|
||||||
if '://' + domain in messageId:
|
if '://' + domain in messageId:
|
||||||
publishedLink = messageId.replace('/statuses/', '/')
|
publishedLink = messageId.replace('/statuses/', '/')
|
||||||
# this retains the news account reference for news posts
|
|
||||||
if '/users/news/' in publishedLink:
|
|
||||||
publishedLink = publishedLink.replace('/users/news/', '/users/news2/')
|
|
||||||
# if this is a local link then make it relative so that it works
|
# if this is a local link then make it relative so that it works
|
||||||
# on clearnet or onion address
|
# on clearnet or onion address
|
||||||
if domain + '/users/' in publishedLink or \
|
if domain + '/users/' in publishedLink or \
|
||||||
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 = publishedStr + '\n'
|
||||||
|
|
||||||
# change the background color for DMs in inbox timeline
|
# change the background color for DMs in inbox timeline
|
||||||
if showDMicon:
|
if showDMicon:
|
||||||
|
|
Loading…
Reference in New Issue