mirror of https://gitlab.com/bashrc2/epicyon
Remove full url
parent
856b8a1516
commit
ad8426708e
|
@ -197,7 +197,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
|
||||||
# show the newswire lines
|
# show the newswire lines
|
||||||
newswireContentStr = \
|
newswireContentStr = \
|
||||||
_htmlNewswire(baseDir, newswire, nickname, moderator, translate,
|
_htmlNewswire(baseDir, newswire, nickname, moderator, translate,
|
||||||
positiveVoting, httpPrefix, domainFull)
|
positiveVoting)
|
||||||
htmlStr += newswireContentStr
|
htmlStr += newswireContentStr
|
||||||
|
|
||||||
# show the rss icon at the bottom, typically on the right hand side
|
# show the rss icon at the bottom, typically on the right hand side
|
||||||
|
@ -213,8 +213,7 @@ def _getBrokenFavSubstitute() -> str:
|
||||||
|
|
||||||
|
|
||||||
def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
|
def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
|
||||||
translate: {}, positiveVoting: bool,
|
translate: {}, positiveVoting: bool) -> str:
|
||||||
httpPrefix: str, domainFull: str) -> str:
|
|
||||||
"""Converts a newswire dict into html
|
"""Converts a newswire dict into html
|
||||||
"""
|
"""
|
||||||
separatorStr = htmlPostSeparator(baseDir, 'right')
|
separatorStr = htmlPostSeparator(baseDir, 'right')
|
||||||
|
@ -245,7 +244,6 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
|
||||||
cachedFaviconFilename = getFavFilenameFromUrl(baseDir, faviconUrl)
|
cachedFaviconFilename = getFavFilenameFromUrl(baseDir, faviconUrl)
|
||||||
if os.path.isfile(cachedFaviconFilename):
|
if os.path.isfile(cachedFaviconFilename):
|
||||||
faviconUrl = \
|
faviconUrl = \
|
||||||
httpPrefix + '://' + domainFull + \
|
|
||||||
cachedFaviconFilename.replace(baseDir, '')
|
cachedFaviconFilename.replace(baseDir, '')
|
||||||
else:
|
else:
|
||||||
extensions = ('png', 'jpg', 'gif', 'avif', 'svg', 'webp')
|
extensions = ('png', 'jpg', 'gif', 'avif', 'svg', 'webp')
|
||||||
|
@ -256,7 +254,6 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
|
||||||
cachedFaviconFilename.replace('.ico', '.' + ext)
|
cachedFaviconFilename.replace('.ico', '.' + ext)
|
||||||
if os.path.isfile(cachedFaviconFilename):
|
if os.path.isfile(cachedFaviconFilename):
|
||||||
faviconUrl = \
|
faviconUrl = \
|
||||||
httpPrefix + '://' + domainFull + \
|
|
||||||
cachedFaviconFilename.replace(baseDir, '')
|
cachedFaviconFilename.replace(baseDir, '')
|
||||||
|
|
||||||
faviconLink = \
|
faviconLink = \
|
||||||
|
|
Loading…
Reference in New Issue