From 2e681f5b58902953440e07d9ec4b8470c1222dcb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 16 Dec 2021 21:27:50 +0000 Subject: [PATCH] Link to cached favicons --- webapp_column_right.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_column_right.py b/webapp_column_right.py index bf1162270..fb7fc78c6 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -240,6 +240,10 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, faviconUrl = getNewswireFaviconUrl(url) faviconLink = '' if faviconUrl: + favBase = '/favicons/' + faviconUrl.replace('/', '#') + cachedFaviconFilename = baseDir + favBase + if os.path.isfile(cachedFaviconFilename): + faviconUrl = favBase faviconLink = \ ''