Fix relative links again

This commit is contained in:
rubenwardy 2018-12-25 20:26:36 +00:00
parent c926a812d3
commit d44178cb0c
1 changed files with 7 additions and 2 deletions

View File

@ -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: