mirror of https://gitlab.com/bashrc2/epicyon
Replace earlier
parent
78b3fc3838
commit
201321506f
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue