diff --git a/app/tasks/forumtasks.py b/app/tasks/forumtasks.py index 05f6006..85d4b09 100644 --- a/app/tasks/forumtasks.py +++ b/app/tasks/forumtasks.py @@ -49,9 +49,14 @@ def checkForumAccount(username, forceNoSave=False): needsSaving = True pic = profile.avatar - if pic and not "http" in pic: - needsSaving = needsSaving or pic != user.profile_pic + if pic and "http" in pic: + pic = None + + needsSaving = needsSaving or pic != user.profile_pic + if pic: user.profile_pic = "https://forum.minetest.net/" + pic + else: + user.profile_pic = None # Save if needsSaving and not forceNoSave: