From 201321506faa2eef3b6d56ebbc65425b2db7e415 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Nov 2019 18:51:51 +0000 Subject: [PATCH] Replace earlier --- daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 1b9ddba05..971271240 100644 --- a/daemon.py +++ b/daemon.py @@ -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 \