wip changes

This commit is contained in:
okbel
2018-03-01 11:27:21 -03:00
parent a3158a494c
commit de69cf5790
3 changed files with 6 additions and 7 deletions
@@ -96,7 +96,7 @@ const singleCommentFragment = gql`
edited
editableUntil
}
${getSlotFragmentSpreads(slots, 'comment')}.
${getSlotFragmentSpreads(slots, 'comment')}
...${getDefinitionName(CommentBox.fragments.comment)}
${CommentBox.fragments.comment}
}
@@ -6,7 +6,6 @@ import { getDefinitionName } from 'coral-framework/utils';
import t, { timeago } from 'coral-framework/services/i18n';
import { can } from 'coral-framework/services/perms';
import { isSuspended } from 'coral-framework/utils/user';
import DraftArea from './DraftArea';
import Slot from 'coral-framework/components/Slot';
import { connect } from 'react-redux';
import CommentForm from '../containers/CommentForm';
@@ -222,9 +221,9 @@ export default compose(
comment: gql`
fragment TalkEmbedStream_CommentBox_comment on Comment {
__typename
...${getDefinitionName(DraftArea.fragments.comment)}
...${getDefinitionName(CommentForm.fragments.comment)}
}
${DraftArea.fragments.comment}
${CommentForm.fragments.comment}
`,
})
)(CommentBox);
+3 -3
View File
@@ -108,11 +108,11 @@ module.exports = class CommentsService {
};
const originalComment = await CommentModel.findOneAndUpdate(query, {
$set: {
$set: dotize({
body,
status,
metadata: dotize(metadata),
},
metadata,
}),
$push: {
body_history: {
body,