Use username in fallback when generating gravatar profile picture

This commit is contained in:
rubenwardy 2021-11-25 11:00:20 +00:00
parent 443dd9f18f
commit 3c4085eb0b

@ -201,7 +201,7 @@ class User(db.Model, UserMixin):
elif self.rank == UserRank.BOT:
return "/static/bot_avatar.png"
else:
return gravatar(self.email or "")
return gravatar(self.email or f"{self.username}@content.minetest.net")
def checkPerm(self, user, perm):
if not user.is_authenticated: