From: Dessalines Date: Wed, 21 Sep 2022 14:05:19 +0000 (-0400) Subject: Hide extra comment and post functionality from search page. Fixes #752 (#788) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.es.md?a=commitdiff_plain;h=4b763d1b069bfb9e9937c3ee24ce29aba5a46e1d;p=lemmy-ui.git Hide extra comment and post functionality from search page. Fixes #752 (#788) --- diff --git a/src/shared/components/search.tsx b/src/shared/components/search.tsx index 431681e..30bd9b8 100644 --- a/src/shared/components/search.tsx +++ b/src/shared/components/search.tsx @@ -589,6 +589,7 @@ export class Search extends Component { showCommunity enableDownvotes={enableDownvotes(this.state.siteRes)} enableNsfw={enableNsfw(this.state.siteRes)} + viewOnly /> )} {i.type_ == "comments" && ( @@ -602,6 +603,7 @@ export class Search extends Component { }, ]} viewType={CommentViewType.Flat} + viewOnly moderators={None} admins={None} maxCommentsShown={None} @@ -639,6 +641,7 @@ export class Search extends Component { { admins={None} enableDownvotes={enableDownvotes(this.state.siteRes)} enableNsfw={enableNsfw(this.state.siteRes)} + viewOnly />