mirror of https://gitlab.com/bashrc2/epicyon
Link to cached favicons
parent
71cf29629a
commit
2e681f5b58
|
@ -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 = \
|
||||
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
||||
'alt="" ' + _getBrokenFavSubstitute() + '/>'
|
||||
|
|
Loading…
Reference in New Issue