mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix relative links
This commit is contained in:
parent
0b83d2f2b5
commit
c926a812d3
@ -22,6 +22,7 @@ from app.tasks import celery
|
|||||||
|
|
||||||
@celery.task()
|
@celery.task()
|
||||||
def sendVerifyEmail(newEmail, token):
|
def sendVerifyEmail(newEmail, token):
|
||||||
|
print("Sending verify email!")
|
||||||
msg = Message("Verify email address", recipients=[newEmail])
|
msg = Message("Verify email address", recipients=[newEmail])
|
||||||
msg.body = "This is a verification email!"
|
msg.body = "This is a verification email!"
|
||||||
msg.html = render_template("emails/verify.html", token=token)
|
msg.html = render_template("emails/verify.html", token=token)
|
||||||
|
@ -49,8 +49,9 @@ def checkForumAccount(username, forceNoSave=False):
|
|||||||
needsSaving = True
|
needsSaving = True
|
||||||
|
|
||||||
pic = profile.avatar
|
pic = profile.avatar
|
||||||
needsSaving = needsSaving or pic != user.profile_pic
|
if pic and not "http" in pic:
|
||||||
user.profile_pic = pic
|
needsSaving = needsSaving or pic != user.profile_pic
|
||||||
|
user.profile_pic = "https://forum.minetest.net/" + pic
|
||||||
|
|
||||||
# Save
|
# Save
|
||||||
if needsSaving and not forceNoSave:
|
if needsSaving and not forceNoSave:
|
||||||
|
Loading…
Reference in New Issue
Block a user