Merge pull request #127 from 67P/feature/allow-setting-contributor-accounts

Allow setting any contributor accounts
This commit is contained in:
bumi 2019-05-17 08:42:43 +00:00 committed by GitHub
commit 345b6bde82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {