From 70b67930edcf8c9474532915a493c61bc828f268 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Oct 2020 18:25:19 +0000 Subject: [PATCH] Indentation --- daemon.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/daemon.py b/daemon.py index e4266036e..30dadca06 100644 --- a/daemon.py +++ b/daemon.py @@ -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 \