mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
changes
This commit is contained in:
@@ -84,7 +84,7 @@ const slots = ['commentBox'];
|
||||
|
||||
export default withFragments({
|
||||
comment: gql`
|
||||
fragment CoralAdmin_CommentDetails_comment on Comment {
|
||||
fragment TalkEmbedStream_DraftArea_comment on Comment {
|
||||
__typename
|
||||
${getSlotFragmentSpreads(slots, 'comment')}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ export default {
|
||||
update: proxy => {
|
||||
const editCommentFragment = gql`
|
||||
fragment Talk_EditComment on Comment {
|
||||
body
|
||||
richTextBody
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -8,6 +8,7 @@ const cloneDeep = require('lodash/cloneDeep');
|
||||
const errors = require('../errors');
|
||||
const events = require('./events');
|
||||
const merge = require('lodash/merge');
|
||||
const { dotize } = require('./utils');
|
||||
const { COMMENTS_NEW, COMMENTS_EDIT } = require('./events/constants');
|
||||
|
||||
module.exports = class CommentsService {
|
||||
@@ -110,7 +111,7 @@ module.exports = class CommentsService {
|
||||
$set: {
|
||||
body,
|
||||
status,
|
||||
metadata,
|
||||
metadata: dotize(metadata),
|
||||
},
|
||||
$push: {
|
||||
body_history: {
|
||||
|
||||
Reference in New Issue
Block a user