From a7e3ce25854d6186b77e68c155a9a8bcdbd896ec Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 21 Mar 2023 17:58:50 -0500 Subject: Add fulltext search for posts and profiles (closes #340) (#342) * Refactor mobile search screen * Remove 'staleness' fetch trigger on search * Implement a temporary fulltext search solution * Add missing key from profile search result * A few UI & UX improvements to the search suggestions * Update web search suggestions * Implement search in web build --- src/view/com/post/Post.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/view/com/post/Post.tsx') diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index ac7d1cc55..a6c66d143 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -30,11 +30,13 @@ export const Post = observer(function Post({ uri, initView, showReplyLine, + hideError, style, }: { uri: string initView?: PostThreadViewModel showReplyLine?: boolean + hideError?: boolean style?: StyleProp }) { const pal = usePalette('default') @@ -70,6 +72,9 @@ export const Post = observer(function Post({ // error // = if (view.hasError || !view.thread || !view.thread?.postRecord) { + if (hideError) { + return + } return ( {view.error || 'Thread not found'} -- cgit 1.4.1