From 0510cf23893cf1a1e81bf674b6c25547b69348d7 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 6 Jun 2017 19:56:55 +0200 Subject: [PATCH] Set contributor kind from IPFS profile --- app/models/contributor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/contributor.js b/app/models/contributor.js index c591edc..293bdcd 100644 --- a/app/models/contributor.js +++ b/app/models/contributor.js @@ -36,7 +36,10 @@ export default Ember.Object.extend({ let profileJSON = JSON.parse(content); 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 github = accounts.findBy('site', 'github.com');