Merge pull request #501 from hackrush01/channel-claimID-fix

Return proper URI when channel name is present.
This commit is contained in:
Jeremy Kauffman 2017-08-26 10:00:01 -04:00 committed by GitHub
commit fb2b37c4f1
2 changed files with 5 additions and 3 deletions

View file

@ -31,6 +31,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
* Fixed sizing on squat videos (#419) * Fixed sizing on squat videos (#419)
* Support claims no longer show up on Published page (#384) * Support claims no longer show up on Published page (#384)
* Fixed rendering of small prices (#461) * Fixed rendering of small prices (#461)
* Fixed incorrect URI in Downloads/Published page (#460)
### Deprecated ### Deprecated
* *

View file

@ -63,12 +63,13 @@ class FileList extends React.PureComponent {
const content = []; const content = [];
this._sortFunctions[sortBy](fileInfos).forEach(fileInfo => { this._sortFunctions[sortBy](fileInfos).forEach(fileInfo => {
let uriParams = { let uriParams = {};
claimId: fileInfo.claim_id,
};
if (fileInfo.channel_name) { if (fileInfo.channel_name) {
uriParams.channelName = fileInfo.channel_name; uriParams.channelName = fileInfo.channel_name;
uriParams.contentName = fileInfo.name; uriParams.contentName = fileInfo.name;
// The following can be done as certificateID of a claim is nothing but the claimID of the channel.
uriParams.claimId = fileInfo.value.publisherSignature.certificateId;
} else { } else {
uriParams.claimId = fileInfo.claim_id; uriParams.claimId = fileInfo.claim_id;
uriParams.name = fileInfo.name; uriParams.name = fileInfo.name;