mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
d31867c4b6
|
|
@ -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/'):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 += '<div class="container">'
|
||||
followApprovalsSection += \
|
||||
'<a href="' + followerActor + '">'
|
||||
|
|
|
|||
Loading…
Reference in New Issue