tested conflicting channel ids and updated logging
This commit is contained in:
parent
b2eed76914
commit
e5a0dc8eb6
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 => {
|
||||
allChannelClaims.forEach(element => {
|
||||
element['channelName'] = channelName;
|
||||
element['longChannelId'] = longChannelId;
|
||||
element['shortChannelId'] = shortChannelId;
|
||||
element['fileExtension'] = element.contentType.substring(element.contentType.lastIndexOf('/') + 1);
|
||||
});
|
||||
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