|
|
@@ -311,6 +311,17 @@ class BankClient {
|
|
|
return yield this.getContactById(peerId, contactId);
|
|
|
});
|
|
|
}
|
|
|
+ getContentItemByHash(hash) {
|
|
|
+ return __awaiter(this, void 0, void 0, function* () {
|
|
|
+ if (!hash.startsWith('/ipfs/')) {
|
|
|
+ hash = '/ipfs/' + hash;
|
|
|
+ }
|
|
|
+ return this.webClient.requestJSON({
|
|
|
+ method: 'get',
|
|
|
+ url: this.ipfsUrlBase + hash + '/content.json'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
getItemsForCommaList(commaList) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
const itemHashes = commaList.split(',').filter(x => x.trim() !== '');
|