diff --git a/webapp_column_right.py b/webapp_column_right.py index 96b0a9759..319a5eb02 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -187,13 +187,13 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, return htmlStr -def getBrokenFavSubstitute() -> str: +def _getBrokenFavSubstitute() -> str: """Substitute link used if a favicon is not available """ return " onerror=\"this.onerror=null; this.style='width:0%'; this.src=''\"" -def getFavicon(url: str) -> str: +def getNewswireFavicon(url: str) -> str: """Returns a favicon url from the given article link """ if '://' not in url: @@ -232,12 +232,12 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, dateStrLink = dateStr.replace('T', ' ') dateStrLink = dateStrLink.replace('Z', '') url = item[1] - faviconUrl = getFavicon(url) + faviconUrl = getNewswireFavicon(url) faviconLink = '' if faviconUrl: faviconLink = \ '' + _getBrokenFavSubstitute() + '/>' moderatedItem = item[5] htmlStr += separatorStr if moderatedItem and 'vote:' + nickname in item[2]: