Set contributor kind from IPFS profile

This commit is contained in:
2017-06-06 19:56:55 +02:00
parent c893f91ce2
commit 0510cf2389
+4 -1
View File
@@ -36,7 +36,10 @@ export default Ember.Object.extend({
let profileJSON = JSON.parse(content); let profileJSON = JSON.parse(content);
let profile = Ember.Object.create(profileJSON); let profile = Ember.Object.create(profileJSON);
this.set('name', profile.get('name')); this.setProperties({
name: profile.get('name'),
kind: profile.get('kind')
});
let accounts = profile.get('accounts'); let accounts = profile.get('accounts');
let github = accounts.findBy('site', 'github.com'); let github = accounts.findBy('site', 'github.com');