Resolve channels #150

Merged
bones7242 merged 23 commits from resolve-channels into master 2017-08-25 18:35:40 +02:00
3 changed files with 12 additions and 10 deletions
Showing only changes of commit e5a0dc8eb6 - Show all commits

View file

@ -172,7 +172,7 @@ function getShortChannelId (channelName, longChannelId) {
}); });
} }
// return the short Id // return the short Id
logger.debug('short claim id ===', shortId); logger.debug('short channel id ===', shortId);
return resolve(shortId); return resolve(shortId);
} }
}) })
@ -334,12 +334,14 @@ module.exports = {
return getAllChannelClaims(longChannelId); return getAllChannelClaims(longChannelId);
}) })
.then(allChannelClaims => { .then(allChannelClaims => {
if (allChannelClaims) {
allChannelClaims.forEach(element => { allChannelClaims.forEach(element => {
element['channelName'] = channelName; element['channelName'] = channelName;
element['longChannelId'] = longChannelId; element['longChannelId'] = longChannelId;
element['shortChannelId'] = shortChannelId; element['shortChannelId'] = shortChannelId;
element['fileExtension'] = element.contentType.substring(element.contentType.lastIndexOf('/') + 1); element['fileExtension'] = element.contentType.substring(element.contentType.lastIndexOf('/') + 1);
}); });
}
return resolve(allChannelClaims); return resolve(allChannelClaims);
}) })
.catch(error => { .catch(error => {

View file

@ -2,7 +2,7 @@
{{> topBar}} {{> topBar}}
<div> <div>
<h3>No Claims</h3> <h3>No Claims</h3>
<p>There are no free, public assets on this channel.</p> <p>There are no free assets on this channel.</p>
<p><i>If you think this message is an error, contact us in Slack!</i></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>
</div> </div>

View file

@ -2,7 +2,7 @@
{{> topBar}} {{> topBar}}
<div> <div>
<h3>No Claims</h3> <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> <p>NOTE: it is possible your claim was published, but it is still being processed by the blockchain</p>
</div> </div>
</div> </div>