From: Dessalines Date: Tue, 4 May 2021 21:31:38 +0000 (-0400) Subject: Adding URL search type. Fixes #286 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%7B?a=commitdiff_plain;h=caeba8998315f7466ca907ba0ebf311305b466bb;p=lemmy-ui.git Adding URL search type. Fixes #286 --- diff --git a/src/shared/components/search.tsx b/src/shared/components/search.tsx index 72bdfcc..dc8976c 100644 --- a/src/shared/components/search.tsx +++ b/src/shared/components/search.tsx @@ -326,6 +326,7 @@ export class Search extends Component { {this.state.type_ == SearchType.Posts && this.posts()} {this.state.type_ == SearchType.Communities && this.communities()} {this.state.type_ == SearchType.Users && this.users()} + {this.state.type_ == SearchType.Url && this.posts()} {this.resultsCount() == 0 && {i18n.t("no_results")}} {this.paginator()} @@ -374,6 +375,7 @@ export class Search extends Component { {i18n.t("communities")} +