Resolve channels #150
3 changed files with 12 additions and 10 deletions
|
@ -172,7 +172,7 @@ function getShortChannelId (channelName, longChannelId) {
|
|||
});
|
||||
}
|
||||
// return the short Id
|
||||
logger.debug('short claim id ===', shortId);
|
||||
logger.debug('short channel id ===', shortId);
|
||||
return resolve(shortId);
|
||||
}
|
||||
})
|
||||
|
@ -334,12 +334,14 @@ module.exports = {
|
|||
return getAllChannelClaims(longChannelId);
|
||||
})
|
||||
.then(allChannelClaims => {
|
||||
if (allChannelClaims) {
|
||||
allChannelClaims.forEach(element => {
|
||||
element['channelName'] = channelName;
|
||||
element['longChannelId'] = longChannelId;
|
||||
element['shortChannelId'] = shortChannelId;
|
||||
element['fileExtension'] = element.contentType.substring(element.contentType.lastIndexOf('/') + 1);
|
||||
});
|
||||
}
|
||||
return resolve(allChannelClaims);
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{> topBar}}
|
||||
<div>
|
||||
<h3>No Claims</h3>
|
||||
<p>There are no free, public assets on this channel.</p>
|
||||
<p><i>If you think this message is an error, contact us in Slack!</i></p>
|
||||
<p>There are no free assets on this channel.</p>
|
||||
<p><i>If you think this message is an error, contact us in the <a href="https://lbry.slack.com/" target="_blank">LBRY slack!</a></i></p>
|
||||
</div>
|
||||
</div>
|
|
@ -2,7 +2,7 @@
|
|||
{{> topBar}}
|
||||
<div>
|
||||
<h3>No Claims</h3>
|
||||
<p>There are no free, public images at that claim. You should publish one at <a href="/">spee.ch</a>.</p>
|
||||
<p>There are no free assets at that claim. You should publish one at <a href="/">spee.ch</a>.</p>
|
||||
<p>NOTE: it is possible your claim was published, but it is still being processed by the blockchain</p>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue