diff --git a/daemon.py b/daemon.py index 7b6c81562..cf12ea415 100644 --- a/daemon.py +++ b/daemon.py @@ -1319,7 +1319,7 @@ class PubServer(BaseHTTPRequestHandler): return # get fonts - if htmlGET and '/fonts/' in self.path: + if '/fonts/' in self.path: fontStr = self.path.split('/fonts/')[1] if fontStr.endswith('.otf') or \ fontStr.endswith('.ttf') or \ @@ -1349,8 +1349,8 @@ class PubServer(BaseHTTPRequestHandler): return else: if os.path.isfile(fontFilename): - with open(fontFilename, 'rb') as avFile: - fontBinary = avFile.read() + with open(fontFilename, 'rb') as fontFile: + fontBinary = fontFile.read() self._set_headers_etag(fontFilename, fontType, fontBinary, cookie, @@ -1736,6 +1736,7 @@ class PubServer(BaseHTTPRequestHandler): '/emoji/' not in self.path and \ '/tags/' not in self.path and \ '/avatars/' not in self.path and \ + '/fonts/' not in self.path and \ '/icons/' not in self.path: divertToLoginScreen = True if self.path.startswith('/users/'): diff --git a/epicyon-notification b/epicyon-notification index 358d5f11b..0f7bd8fde 100755 --- a/epicyon-notification +++ b/epicyon-notification @@ -265,7 +265,7 @@ function notifications { cp "$epicyonFollowFile" "$epicyonFollowNotificationsFile" chown ${PROJECT_NAME}:${PROJECT_NAME} "$epicyonFollowNotificationsFile" - epicyonFollowMessage=$(notification_translate_text "New follow request")" ${EPICYON_DOMAIN_NAME}/users/${USERNAME}" + epicyonFollowMessage=$(notification_translate_text "New follow request")" ${EPICYON_DOMAIN_NAME}/users/${USERNAME}/followers" sendNotification "$USERNAME" "Epicyon" "$epicyonFollowMessage" fi fi diff --git a/webinterface.py b/webinterface.py index ad7db9acb..eb640354e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2247,7 +2247,7 @@ def getFontFromCss(css: str) -> (str, str): """ if ' url(' not in css: return None, None - fontName = css.split(" url('")[1].split("')")[0] + fontName = css.split(" url(")[1].split(")")[0].replace("'", '') fontFormat = css.split(" format('")[1].split("')")[0] return fontName, fontFormat @@ -2699,8 +2699,7 @@ def htmlProfile(defaultTimeline: str, httpPrefix + '://' + \ followerHandle.split('@')[1] + \ '/users/' + followerHandle.split('@')[0] - basePath = httpPrefix + '://' + domainFull + \ - '/users/' + nickname + basePath = '/users/' + nickname followApprovalsSection += '