mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
With Featured Comments :)
This commit is contained in:
@@ -11,10 +11,20 @@ const mapStateToProps = ({auth}) => ({
|
||||
const enhance = compose(
|
||||
connect(mapStateToProps),
|
||||
withFragments({
|
||||
asset: gql`
|
||||
fragment TalkModerationActions_asset on Asset {
|
||||
id
|
||||
}`
|
||||
,
|
||||
comment: gql`
|
||||
fragment TalkModerationActions_comment on Comment {
|
||||
id
|
||||
status
|
||||
tags {
|
||||
tag {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
`}),
|
||||
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),
|
||||
|
||||
Reference in New Issue
Block a user