mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-06 16:17:06 +08:00
fix: update gravatar URL to use cn.cravatar.com
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ async def get_me(current_user: Annotated[User, Depends(get_current_active_user)]
|
|||||||
"""
|
"""
|
||||||
email = (current_user.email or "").strip().lower()
|
email = (current_user.email or "").strip().lower()
|
||||||
md5_hash = hashlib.md5(email.encode("utf-8")).hexdigest()
|
md5_hash = hashlib.md5(email.encode("utf-8")).hexdigest()
|
||||||
gravatar_url = f"https://www.gravatar.com/avatar/{md5_hash}?s=64&d=identicon"
|
gravatar_url = f"https://cn.cravatar.com/avatar/{md5_hash}?s=64&d=identicon"
|
||||||
return success({
|
return success({
|
||||||
"id": current_user.id,
|
"id": current_user.id,
|
||||||
"username": current_user.username,
|
"username": current_user.username,
|
||||||
|
|||||||
Reference in New Issue
Block a user