diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-12-25 20:25:17 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-12-25 20:25:17 +0000 |
commit | c926a812d341b3efb7d22f2b339be2f2d9cc7029 (patch) | |
tree | 339a223a057f7e3b8921888da3c957a1f30f1930 | |
parent | 0b83d2f2b5461c402120b089e2686c1ce4c63b25 (diff) | |
download | cheatdb-c926a812d341b3efb7d22f2b339be2f2d9cc7029.tar.xz |
Fix relative links
-rw-r--r-- | app/tasks/emails.py | 1 | ||||
-rw-r--r-- | app/tasks/forumtasks.py | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/tasks/emails.py b/app/tasks/emails.py index 5af5769..ba3215a 100644 --- a/app/tasks/emails.py +++ b/app/tasks/emails.py @@ -22,6 +22,7 @@ from app.tasks import celery @celery.task() def sendVerifyEmail(newEmail, token): + print("Sending verify email!") msg = Message("Verify email address", recipients=[newEmail]) msg.body = "This is a verification email!" msg.html = render_template("emails/verify.html", token=token) 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: |