mirror of https://gitlab.com/bashrc2/epicyon
Don't replace favicons directory
parent
f36d19ccbe
commit
bf3fc6da37
|
@ -244,7 +244,7 @@ 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 = \
|
||||||
cachedFaviconFilename.replace(baseDir + '/favicons', '')
|
cachedFaviconFilename.replace(baseDir, '')
|
||||||
else:
|
else:
|
||||||
extensions = ('png', 'jpg', 'gif', 'avif', 'svg', 'webp')
|
extensions = ('png', 'jpg', 'gif', 'avif', 'svg', 'webp')
|
||||||
for ext in extensions:
|
for ext in extensions:
|
||||||
|
@ -254,8 +254,7 @@ 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 = \
|
||||||
cachedFaviconFilename.replace(baseDir +
|
cachedFaviconFilename.replace(baseDir, '')
|
||||||
'/favicons', '')
|
|
||||||
|
|
||||||
faviconLink = \
|
faviconLink = \
|
||||||
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
||||||
|
|
Loading…
Reference in New Issue