mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -23,7 +23,7 @@ const tasks = {
|
||||
hash: doc.hash.split('|')[1],
|
||||
hashType: doc.hash.split('|')[0] === 'vj4' ? 'hydro' : doc.hash.split('|')[0],
|
||||
priv: doc.priv,
|
||||
gravatar: doc.gravatar,
|
||||
avatar: `gravatar:${doc.gravatar}`,
|
||||
mail: doc.mail,
|
||||
mailLower: doc.mail_lower,
|
||||
regat: doc.regat,
|
||||
@@ -256,7 +256,10 @@ const tasks = {
|
||||
return res;
|
||||
},
|
||||
},
|
||||
gravatar: 'gravatar',
|
||||
gravatar: {
|
||||
field: 'avatar',
|
||||
processer: (gravatar) => `gavatar:${gravatar}`,
|
||||
},
|
||||
bulletin: 'bulletin',
|
||||
},
|
||||
'fs.files': async (doc) => doc,
|
||||
|
||||
Reference in new issue
Block a user