mirror of https://gitlab.com/bashrc2/epicyon
Replace earlier
parent
78b3fc3838
commit
201321506f
|
@ -705,6 +705,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
return
|
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
|
# redirect music to #nowplaying list
|
||||||
if self.path=='/music' or self.path=='/nowplaying':
|
if self.path=='/music' or self.path=='/nowplaying':
|
||||||
self.path='/tags/nowplaying'
|
self.path='/tags/nowplaying'
|
||||||
|
@ -741,10 +745,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if self._requestHTTP():
|
if self._requestHTTP():
|
||||||
htmlGET=True
|
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
|
# treat shared inbox paths consistently
|
||||||
if self.path=='/sharedInbox' or \
|
if self.path=='/sharedInbox' or \
|
||||||
self.path=='/users/inbox' or \
|
self.path=='/users/inbox' or \
|
||||||
|
|
Loading…
Reference in New Issue