mirror of https://gitlab.com/bashrc2/epicyon
Indentation
parent
a4aee3e737
commit
70b67930ed
30
daemon.py
30
daemon.py
|
@ -9536,23 +9536,23 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
(not authorized and
|
(not authorized and
|
||||||
self.path.startswith('/users/news/') and
|
self.path.startswith('/users/news/') and
|
||||||
self.server.newsInstance)):
|
self.server.newsInstance)):
|
||||||
nickname = getNicknameFromActor(self.path)
|
nickname = getNicknameFromActor(self.path)
|
||||||
if not nickname:
|
if not nickname:
|
||||||
self._404()
|
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
|
self.server.GETbusy = False
|
||||||
return
|
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
|
# hashtag search
|
||||||
if self.path.startswith('/tags/') or \
|
if self.path.startswith('/tags/') or \
|
||||||
|
|
Loading…
Reference in New Issue