From bf3fc6da375b62f8315d3a91a557318f0ee5d1da Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 17 Dec 2021 12:26:01 +0000 Subject: [PATCH] Don't replace favicons directory --- webapp_column_right.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webapp_column_right.py b/webapp_column_right.py index 3cd69a86c..8e476c34e 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -244,7 +244,7 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, cachedFaviconFilename = getFavFilenameFromUrl(baseDir, faviconUrl) if os.path.isfile(cachedFaviconFilename): faviconUrl = \ - cachedFaviconFilename.replace(baseDir + '/favicons', '') + cachedFaviconFilename.replace(baseDir, '') else: extensions = ('png', 'jpg', 'gif', 'avif', 'svg', 'webp') for ext in extensions: @@ -254,8 +254,7 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, cachedFaviconFilename.replace('.ico', '.' + ext) if os.path.isfile(cachedFaviconFilename): faviconUrl = \ - cachedFaviconFilename.replace(baseDir + - '/favicons', '') + cachedFaviconFilename.replace(baseDir, '') faviconLink = \ '