Add support for zoom profiles #175

Merged
bumi merged 3 commits from feature/zoom-profile into master 2019-09-18 07:28:20 +00:00
Showing only changes of commit 66a37a1e74 - Show all commits

View File

@ -28,7 +28,7 @@ class Contributor {
github_username,
gitea_username,
wiki_username,
zoom_name,
zoom_display_name,
} = this;
let data = {
@ -68,10 +68,10 @@ class Contributor {
});
}
if (zoom_name) {
if (zoom_display_name) {
data.accounts.push({
'site': 'zoom.us',
'username': zoom_name,
'username': zoom_display_name,
});
}
@ -104,7 +104,7 @@ class Contributor {
accounts,
} = JSON.parse(serialized.toString('utf8'));
let github_username, github_uid, gitea_username, wiki_username, zoom_name;
let github_username, github_uid, gitea_username, wiki_username, zoom_display_name;
let github = accounts.find(a => a.site === 'github.com');
let gitea = accounts.find(a => a.site === 'gitea.kosmos.org');
let wiki = accounts.find(a => a.site === 'wiki.kosmos.org');
@ -120,7 +120,7 @@ class Contributor {
(({ username: wiki_username } = wiki));
}
if (zoom) {
(({ username: zoom_name } = zoom));
(({ username: zoom_display_name } = zoom));
}
return {
@ -132,7 +132,7 @@ class Contributor {
github_username,
gitea_username,
wiki_username,
zoom_name,
zoom_display_name,
ipfsData: serialized,
};
}