Indentation

merge-requests/8/head
Bob Mottram 2020-10-30 18:25:19 +00:00
parent a4aee3e737
commit 70b67930ed
1 changed files with 15 additions and 15 deletions

View File

@ -9536,23 +9536,23 @@ class PubServer(BaseHTTPRequestHandler):
(not authorized and
self.path.startswith('/users/news/') and
self.server.newsInstance)):
nickname = getNicknameFromActor(self.path)
if not nickname:
self._404()
nickname = getNicknameFromActor(self.path)
if not nickname:
self._404()
self.server.GETbusy = False
return
timelinePath = \
'/users/' + nickname + '/' + self.server.defaultTimeline
msg = htmlLinksMobile(self.server.cssCache,
self.server.baseDir, nickname,
self.server.domainFull,
self.server.httpPrefix,
self.server.translate,
timelinePath).encode('utf-8')
self._set_headers('text/html', len(msg), cookie, callingDomain)
self._write(msg)
self.server.GETbusy = False
return
timelinePath = \
'/users/' + nickname + '/' + self.server.defaultTimeline
msg = htmlLinksMobile(self.server.cssCache,
self.server.baseDir, nickname,
self.server.domainFull,
self.server.httpPrefix,
self.server.translate,
timelinePath).encode('utf-8')
self._set_headers('text/html', len(msg), cookie, callingDomain)
self._write(msg)
self.server.GETbusy = False
return
# hashtag search
if self.path.startswith('/tags/') or \