Use profile data from IPFS for contributor models

This commit is contained in:
2017-06-06 19:05:42 +02:00
parent 372a8a9b2d
commit 4cb3f5d8ba
4 changed files with 69 additions and 6 deletions
+3
View File
@@ -26,6 +26,9 @@ export default Ember.Service.extend({
getFile(hash) {
return this.get('ipfs').cat(hash, { buffer: true }).then(res => {
return res.toString();
}, err => {
Ember.Logger.error('[ipfs] error trying to fetch file', hash, err);
return err;
});
}