mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Use username in fallback when generating gravatar profile picture
This commit is contained in:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user