Hide extra comment and post functionality from search page. Fixes #752 (#788)

This commit is contained in:
Dessalines 2022-09-21 10:05:19 -04:00 committed by GitHub
parent 61b6810466
commit 4b763d1b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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>