mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-24 06:51:29 +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:
|
elif self.rank == UserRank.BOT:
|
||||||
return "/static/bot_avatar.png"
|
return "/static/bot_avatar.png"
|
||||||
else:
|
else:
|
||||||
return gravatar(self.email or "")
|
return gravatar(self.email or f"{self.username}@content.minetest.net")
|
||||||
|
|
||||||
def checkPerm(self, user, perm):
|
def checkPerm(self, user, perm):
|
||||||
if not user.is_authenticated:
|
if not user.is_authenticated:
|
||||||
|
Loading…
Reference in New Issue
Block a user