fix typo
This commit is contained in:
parent
87198619df
commit
bfbaa0dbdd
2 changed files with 15 additions and 6 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -2019,8 +2019,10 @@ const makeSelectClaimForUri = uri => reselect.createSelector(selectClaimsByUri,
|
||||||
|
|
||||||
const repostedClaim = claim.reposted_claim;
|
const repostedClaim = claim.reposted_claim;
|
||||||
if (repostedClaim) {
|
if (repostedClaim) {
|
||||||
|
const channelUrl = claim.signing_channel && claim.signing_channel.canonical_url;
|
||||||
|
|
||||||
return _extends$4({}, repostedClaim, {
|
return _extends$4({}, repostedClaim, {
|
||||||
repost_channel_url: claim.canonical_url
|
repost_channel_url: channelUrl
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return claim;
|
return claim;
|
||||||
|
|
|
@ -130,9 +130,11 @@ export const makeSelectClaimForUri = (uri: string) =>
|
||||||
|
|
||||||
const repostedClaim = claim.reposted_claim;
|
const repostedClaim = claim.reposted_claim;
|
||||||
if (repostedClaim) {
|
if (repostedClaim) {
|
||||||
|
const channelUrl = claim.signing_channel && claim.signing_channel.canonical_url;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...repostedClaim,
|
...repostedClaim,
|
||||||
repost_channel_url: claim.canonical_url,
|
repost_channel_url: channelUrl,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return claim;
|
return claim;
|
||||||
|
@ -277,8 +279,8 @@ export const makeSelectDateForUri = (uri: string) =>
|
||||||
(claim.value.release_time
|
(claim.value.release_time
|
||||||
? claim.value.release_time * 1000
|
? claim.value.release_time * 1000
|
||||||
: claim.meta && claim.meta.creation_timestamp
|
: claim.meta && claim.meta.creation_timestamp
|
||||||
? claim.meta.creation_timestamp * 1000
|
? claim.meta.creation_timestamp * 1000
|
||||||
: null);
|
: null);
|
||||||
if (!timestamp) {
|
if (!timestamp) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
@ -528,11 +530,16 @@ export const makeSelectRecommendedContentForUri = (uri: string) =>
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = { related_to: claim.claim_id }
|
const options = { related_to: claim.claim_id };
|
||||||
if (!isMature) {
|
if (!isMature) {
|
||||||
options['nsfw'] = false;
|
options['nsfw'] = false;
|
||||||
}
|
}
|
||||||
const searchQuery = getSearchQueryString(title.replace(/\//, ' '), undefined, undefined, options);
|
const searchQuery = getSearchQueryString(
|
||||||
|
title.replace(/\//, ' '),
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
options
|
||||||
|
);
|
||||||
|
|
||||||
let searchUris = searchUrisByQuery[searchQuery];
|
let searchUris = searchUrisByQuery[searchQuery];
|
||||||
if (searchUris) {
|
if (searchUris) {
|
||||||
|
|
Loading…
Reference in a new issue