mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
wip changes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user