]> Untitled Git - lemmy-ui.git/commitdiff
Hide extra comment and post functionality from search page. Fixes #752 (#788)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 21 Sep 2022 14:05:19 +0000 (10:05 -0400)
committerGitHub <noreply@github.com>
Wed, 21 Sep 2022 14:05:19 +0000 (10:05 -0400)
src/shared/components/search.tsx

index 431681ee4d5820f2dcf1491e23024846def63a20..30bd9b88c2380220530e0eed0c4fa171d6a76711 100644 (file)
@@ -589,6 +589,7 @@ export class Search extends Component<any, SearchState> {
                   showCommunity
                   enableDownvotes={enableDownvotes(this.state.siteRes)}
                   enableNsfw={enableNsfw(this.state.siteRes)}
+                  viewOnly
                 />
               )}
               {i.type_ == "comments" && (
@@ -602,6 +603,7 @@ export class Search extends Component<any, SearchState> {
                     },
                   ]}
                   viewType={CommentViewType.Flat}
+                  viewOnly
                   moderators={None}
                   admins={None}
                   maxCommentsShown={None}
@@ -639,6 +641,7 @@ export class Search extends Component<any, SearchState> {
       <CommentNodes
         nodes={commentsToFlatNodes(comments)}
         viewType={CommentViewType.Flat}
+        viewOnly
         locked
         noIndent
         moderators={None}
@@ -674,6 +677,7 @@ export class Search extends Component<any, SearchState> {
                 admins={None}
                 enableDownvotes={enableDownvotes(this.state.siteRes)}
                 enableNsfw={enableNsfw(this.state.siteRes)}
+                viewOnly
               />
             </div>
           </div>