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)
|
faviconUrl = getNewswireFaviconUrl(url)
|
||||||
faviconLink = ''
|
faviconLink = ''
|
||||||
if faviconUrl:
|
if faviconUrl:
|
||||||
|
favBase = '/favicons/' + faviconUrl.replace('/', '#')
|
||||||
|
cachedFaviconFilename = baseDir + favBase
|
||||||
|
if os.path.isfile(cachedFaviconFilename):
|
||||||
|
faviconUrl = favBase
|
||||||
faviconLink = \
|
faviconLink = \
|
||||||
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
||||||
'alt="" ' + _getBrokenFavSubstitute() + '/>'
|
'alt="" ' + _getBrokenFavSubstitute() + '/>'
|
||||||
|
|
Loading…
Reference in New Issue