mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 04:19:31 +02:00
✅ Handle cases efficiently when user avatar hash is None. Add method to return Discord default avatar url equivalent.
This commit is contained in:
@@ -50,7 +50,8 @@ def me():
|
||||
<head>
|
||||
<title>{user.name}</title>
|
||||
</head>
|
||||
<body><img src='{user.avatar_url}' />
|
||||
<body><img src='{user.avatar_url or user.default_avatar_url}' />
|
||||
<p>Is avatar animated: {str(user.is_avatar_animated)}</p>
|
||||
<a href={url_for("my_connections")}>Connections</a>
|
||||
<br />
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user