Allow setting any contributor accounts
This allows to pass in an account object when creating or updating a contribtor.
This commit is contained in:
parent
2a675c9417
commit
66fc992291
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user