diff --git a/webapp_moderation.py b/webapp_moderation.py index dcf2abd97..b5d0b3b28 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -189,12 +189,15 @@ def htmlModerationInfo(cssCache: {}, translate: {}, continue actor = actorJson['id'] avatarUrl = '' + ext = '' if actorJson.get('icon'): if actorJson['icon'].get('url'): avatarUrl = actorJson['icon']['url'] + if '.' in avatarUrl: + ext = avatarUrl.split('.')[-1] acctUrl = \ '/users/' + nickname + '?options=' + actor + ';1;' + \ - '/members/' + acctNickname + '/members/' + acctNickname + ext infoForm += '\n' infoForm += ''