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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/migrate-vijos",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.2",
|
||||
"main": "package.json",
|
||||
"repository": "git@github.com:hydro-dev/Hydro.git",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
|
||||
@@ -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