Replace earlier

main2
Bob Mottram 2019-11-06 18:51:51 +00:00
parent 78b3fc3838
commit 201321506f
1 changed files with 4 additions and 4 deletions

View File

@ -705,6 +705,10 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
return
# replace https://domain/@nick with https://domain/users/nick
if self.path.startswith('/@'):
self.path=self.path.replace('/@','/users/')
# redirect music to #nowplaying list
if self.path=='/music' or self.path=='/nowplaying':
self.path='/tags/nowplaying'
@ -741,10 +745,6 @@ class PubServer(BaseHTTPRequestHandler):
if self._requestHTTP():
htmlGET=True
# replace https://domain/@nick with https://domain/users/nick
if self.path.startswith('/@'):
self.path=self.path.replace('/@','/users/')
# treat shared inbox paths consistently
if self.path=='/sharedInbox' or \
self.path=='/users/inbox' or \