Allow setting any contributor accounts

This allows to pass in an account object when creating or updating a
contribtor.
This commit is contained in:
bumi 2019-05-14 11:06:49 +02:00
parent 2a675c9417
commit 66fc992291

View File

@ -28,6 +28,7 @@ class Contributor {
github_username, github_username,
gitea_username, gitea_username,
wiki_username, wiki_username,
accounts
} = this; } = this;
let data = { let data = {
@ -35,7 +36,7 @@ class Contributor {
'@type': 'Contributor', '@type': 'Contributor',
kind, kind,
name, name,
'accounts': [], 'accounts': (accounts || []),
}; };
if (url) { if (url) {