Compare commits
2 commits
master
...
mobile-per
Author | SHA1 | Date | |
---|---|---|---|
|
b272d0f2ce | ||
|
2c569a729b |
3 changed files with 11 additions and 6 deletions
6
dist/bundle.es.js
vendored
6
dist/bundle.es.js
vendored
|
@ -3924,7 +3924,7 @@ const doUpdateSearchQuery = (query, shouldSkipSuggestions) => dispatch => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const doSearch = (rawQuery, size, // only pass in if you don't want to use the users setting (ex: related content)
|
const doSearch = (rawQuery, size, // only pass in if you don't want to use the users setting (ex: related content)
|
||||||
from, isBackgroundSearch = false, options = {}) => (dispatch, getState) => {
|
from, isBackgroundSearch = false, options = {}, resolveResults = true) => (dispatch, getState) => {
|
||||||
const query = rawQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' ');
|
const query = rawQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' ');
|
||||||
|
|
||||||
if (!query) {
|
if (!query) {
|
||||||
|
@ -3973,7 +3973,9 @@ from, isBackgroundSearch = false, options = {}) => (dispatch, getState) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = buildURI(urlObj);
|
const url = buildURI(urlObj);
|
||||||
actions.push(doResolveUri(url));
|
if (resolveResults) {
|
||||||
|
actions.push(doResolveUri(url));
|
||||||
|
}
|
||||||
uris.push(url);
|
uris.push(url);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -81,7 +81,8 @@ export const doSearch = (
|
||||||
isBackgroundSearch: boolean = false,
|
isBackgroundSearch: boolean = false,
|
||||||
options: {
|
options: {
|
||||||
related_to?: string,
|
related_to?: string,
|
||||||
} = {}
|
} = {},
|
||||||
|
resolveResults: boolean = true
|
||||||
) => (dispatch: Dispatch, getState: GetState) => {
|
) => (dispatch: Dispatch, getState: GetState) => {
|
||||||
const query = rawQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' ');
|
const query = rawQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' ');
|
||||||
|
|
||||||
|
@ -135,7 +136,9 @@ export const doSearch = (
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = buildURI(urlObj);
|
const url = buildURI(urlObj);
|
||||||
actions.push(doResolveUri(url));
|
if (resolveResults) {
|
||||||
|
actions.push(doResolveUri(url));
|
||||||
|
}
|
||||||
uris.push(url);
|
uris.push(url);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -260,8 +260,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue