mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
[next] Comment Moderation Actions (#2068)
* fix: renamed snake case to camel case * fix: changed case for mutators * fix: renamed all snake case to camel case for db * feat: added support for comment revisions + split comment actions * fix: updated tests * feat: implemented CommentModerationAction * fix: fixed case issues * feat: enabled WeakMap for wordList processsing * chore: npm audit
This commit is contained in:
@@ -39,6 +39,7 @@ class ReactionButtonContainer extends React.Component<
|
||||
|
||||
const input = {
|
||||
commentID: this.props.comment.id,
|
||||
commentRevisionID: this.props.comment.revision.id,
|
||||
};
|
||||
|
||||
const { createCommentReaction, removeCommentReaction } = this.props;
|
||||
@@ -50,6 +51,7 @@ class ReactionButtonContainer extends React.Component<
|
||||
? removeCommentReaction(input)
|
||||
: createCommentReaction(input);
|
||||
};
|
||||
|
||||
public render() {
|
||||
const {
|
||||
actionCounts: {
|
||||
@@ -90,6 +92,9 @@ export default withShowAuthPopupMutation(
|
||||
comment: graphql`
|
||||
fragment ReactionButtonContainer_comment on Comment {
|
||||
id
|
||||
revision {
|
||||
id
|
||||
}
|
||||
myActionPresence {
|
||||
reaction
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user