Handle default theme news avatar

merge-requests/8/head
Bob Mottram 2020-10-15 19:15:51 +01:00
parent 606cb990fc
commit 326e50ef0e
1 changed files with 4 additions and 1 deletions

View File

@ -1025,7 +1025,10 @@ def setNewsAvatar(baseDir: str, name: str,
"""Sets the avatar for the news account """Sets the avatar for the news account
""" """
nickname = 'news' nickname = 'news'
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png' if name != 'default':
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
else:
newFilename = baseDir + '/img/icons/avatar_news.png'
if not os.path.isfile(newFilename): if not os.path.isfile(newFilename):
return return
avatarFilename = \ avatarFilename = \