Fix relative links again
This commit is contained in:
parent
c926a812d3
commit
d44178cb0c
|
@ -49,9 +49,14 @@ def checkForumAccount(username, forceNoSave=False):
|
||||||
needsSaving = True
|
needsSaving = True
|
||||||
|
|
||||||
pic = profile.avatar
|
pic = profile.avatar
|
||||||
if pic and not "http" in pic:
|
if pic and "http" in pic:
|
||||||
needsSaving = needsSaving or pic != user.profile_pic
|
pic = None
|
||||||
|
|
||||||
|
needsSaving = needsSaving or pic != user.profile_pic
|
||||||
|
if pic:
|
||||||
user.profile_pic = "https://forum.minetest.net/" + pic
|
user.profile_pic = "https://forum.minetest.net/" + pic
|
||||||
|
else:
|
||||||
|
user.profile_pic = None
|
||||||
|
|
||||||
# Save
|
# Save
|
||||||
if needsSaving and not forceNoSave:
|
if needsSaving and not forceNoSave:
|
||||||
|
|
Loading…
Reference in New Issue