mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: add avatar provider API
This commit is contained in:
1 parent
2db1570d1b
commit
f1f956202f
42 files changed
+122
-80
No files matched your search
@@ -104,8 +104,8 @@ export class QueryProblemSetAPIHandler extends Handler {
|
||||
nickname: udoc.displayName || udoc.uname,
|
||||
bio: udoc.bio,
|
||||
avatar: {
|
||||
type: 'gravatar',
|
||||
key: udoc.gravatar,
|
||||
type: udoc.avatar.split(':')[0],
|
||||
key: udoc.avatar.split(':')[1],
|
||||
},
|
||||
isAdmin: udoc.hasPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN) || udoc.hasPerm(PERM.PERM_ADMIN),
|
||||
acceptedProblemCount: udoc.nAccept,
|
||||
|
||||
Reference in new issue
Block a user