mirror of https://gitlab.com/bashrc2/epicyon
Remove bookmark endings from post ids
parent
395891dd1f
commit
b3e57c5fde
|
@ -2157,6 +2157,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
resetThemeDesignerSettings(baseDir, themeName, domain,
|
resetThemeDesignerSettings(baseDir, themeName, domain,
|
||||||
allowLocalNetworkAccess,
|
allowLocalNetworkAccess,
|
||||||
systemLanguage)
|
systemLanguage)
|
||||||
|
setTheme(baseDir, themeName, domain,
|
||||||
|
allowLocalNetworkAccess, systemLanguage)
|
||||||
|
|
||||||
if callingDomain.endswith('.onion') and onionDomain:
|
if callingDomain.endswith('.onion') and onionDomain:
|
||||||
originPathStr = \
|
originPathStr = \
|
||||||
|
|
2
theme.py
2
theme.py
|
@ -513,8 +513,6 @@ def resetThemeDesignerSettings(baseDir: str, themeName: str, domain: str,
|
||||||
os.remove(customVariablesFile)
|
os.remove(customVariablesFile)
|
||||||
except OSError:
|
except OSError:
|
||||||
print('EX: unable to remove theme designer settings on reset')
|
print('EX: unable to remove theme designer settings on reset')
|
||||||
setTheme(baseDir, themeName, domain,
|
|
||||||
allowLocalNetworkAccess, systemLanguage)
|
|
||||||
|
|
||||||
|
|
||||||
def _readVariablesFile(baseDir: str, themeName: str,
|
def _readVariablesFile(baseDir: str, themeName: str,
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -595,6 +595,8 @@ def removeIdEnding(idStr: str) -> str:
|
||||||
idStr = idStr[:-len('/event')]
|
idStr = idStr[:-len('/event')]
|
||||||
elif idStr.endswith('/replies'):
|
elif idStr.endswith('/replies'):
|
||||||
idStr = idStr[:-len('/replies')]
|
idStr = idStr[:-len('/replies')]
|
||||||
|
if '#' in idStr:
|
||||||
|
idStr = idStr.split('#')[0]
|
||||||
return idStr
|
return idStr
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue