Return proper URI when channel name is present
This commit is contained in:
parent
b49318aead
commit
2c14eb77ac
1 changed files with 4 additions and 3 deletions
|
@ -67,12 +67,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;
|
||||||
|
|
Loading…
Reference in a new issue