Access to links from mobile front page

merge-requests/8/head
Bob Mottram 2020-10-30 18:16:07 +00:00
parent b11de7e83b
commit 1d8997af2c
1 changed files with 5 additions and 1 deletions

View File

@ -9530,8 +9530,12 @@ class PubServer(BaseHTTPRequestHandler):
self.server.GETbusy = False
return
if authorized and htmlGET and '/users/' in self.path and \
if htmlGET and self.path.startswith('/users/') and \
self.path.endswith('/linksmobile'):
if (authorized or
(not authorized and
self.path.startswith('/users/news/') and
self.server.newsInstance)):
nickname = getNicknameFromActor(self.path)
if not nickname:
self._404()