From a43d91504f3090db7edebb453a3213b1a3bcfc4a Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 20 Dec 2019 10:13:50 -0500 Subject: [PATCH] omit channels from suggested publish on search --- ui/component/claimPreview/view.jsx | 4 ++++ ui/page/search/view.jsx | 31 ++++++++++++++++++------------ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx index cbc921fe2..c5f62f977 100644 --- a/ui/component/claimPreview/view.jsx +++ b/ui/component/claimPreview/view.jsx @@ -175,6 +175,10 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { ); } + if (placeholder === 'publish' && !claim && uri.startsWith('lbry://@')) { + return null; + } + return (
  • { if (urlQuery) { @@ -44,11 +51,11 @@ export default function SearchPage(props: Props) {
    {urlQuery && ( - {isModifiedUriValid && ( + {isUriValid && (
    - +
    - +
    )}