mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 16:51:13 +00:00
Hide extra comment and post functionality from search page. Fixes #752
This commit is contained in:
parent
61b6810466
commit
119dcd8979
1 changed files with 4 additions and 0 deletions
|
@ -589,6 +589,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
showCommunity
|
showCommunity
|
||||||
enableDownvotes={enableDownvotes(this.state.siteRes)}
|
enableDownvotes={enableDownvotes(this.state.siteRes)}
|
||||||
enableNsfw={enableNsfw(this.state.siteRes)}
|
enableNsfw={enableNsfw(this.state.siteRes)}
|
||||||
|
viewOnly
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{i.type_ == "comments" && (
|
{i.type_ == "comments" && (
|
||||||
|
@ -602,6 +603,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
viewType={CommentViewType.Flat}
|
viewType={CommentViewType.Flat}
|
||||||
|
viewOnly
|
||||||
moderators={None}
|
moderators={None}
|
||||||
admins={None}
|
admins={None}
|
||||||
maxCommentsShown={None}
|
maxCommentsShown={None}
|
||||||
|
@ -639,6 +641,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
<CommentNodes
|
<CommentNodes
|
||||||
nodes={commentsToFlatNodes(comments)}
|
nodes={commentsToFlatNodes(comments)}
|
||||||
viewType={CommentViewType.Flat}
|
viewType={CommentViewType.Flat}
|
||||||
|
viewOnly
|
||||||
locked
|
locked
|
||||||
noIndent
|
noIndent
|
||||||
moderators={None}
|
moderators={None}
|
||||||
|
@ -674,6 +677,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
admins={None}
|
admins={None}
|
||||||
enableDownvotes={enableDownvotes(this.state.siteRes)}
|
enableDownvotes={enableDownvotes(this.state.siteRes)}
|
||||||
enableNsfw={enableNsfw(this.state.siteRes)}
|
enableNsfw={enableNsfw(this.state.siteRes)}
|
||||||
|
viewOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue