From c926a812d341b3efb7d22f2b339be2f2d9cc7029 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 25 Dec 2018 20:25:17 +0000 Subject: Fix relative links --- app/tasks/forumtasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/tasks/forumtasks.py') diff --git a/app/tasks/forumtasks.py b/app/tasks/forumtasks.py index 9e4cbfb..05f6006 100644 --- a/app/tasks/forumtasks.py +++ b/app/tasks/forumtasks.py @@ -49,8 +49,9 @@ def checkForumAccount(username, forceNoSave=False): needsSaving = True pic = profile.avatar - needsSaving = needsSaving or pic != user.profile_pic - user.profile_pic = pic + if pic and not "http" in pic: + needsSaving = needsSaving or pic != user.profile_pic + user.profile_pic = "https://forum.minetest.net/" + pic # Save if needsSaving and not forceNoSave: -- cgit v1.2.3