Unverified Commit fa27af5a authored by Sarah Otts's avatar Sarah Otts Committed by GitHub

Merge pull request #4880 from seotts/automod-messaging-all-types

Show correct mute messaging instead of always the general message
parents 61e04044 9d08b69b
...@@ -104,7 +104,7 @@ class ComposeComment extends React.Component { ...@@ -104,7 +104,7 @@ class ComposeComment extends React.Component {
muteOpen = true; muteOpen = true;
} }
showWarning = body.status.mute_status.showWarning; showWarning = body.status.mute_status.showWarning;
muteType = body.status.mute_status.muteType; muteType = body.status.mute_status.currentMessageType;
this.setupMuteExpirationTimeout(muteExpiresAtMs); this.setupMuteExpirationTimeout(muteExpiresAtMs);
} }
// Note: does not reset the message state // Note: does not reset the message state
...@@ -204,7 +204,7 @@ class ComposeComment extends React.Component { ...@@ -204,7 +204,7 @@ class ComposeComment extends React.Component {
vulgarity: { vulgarity: {
commentType: 'comment.type.vulgarity', commentType: 'comment.type.vulgarity',
muteStepHeader: 'comment.vulgarity.header', muteStepHeader: 'comment.vulgarity.header',
muteStepContent: ['comment.vulgarity.content1', 'comment.vulgar.content2'] muteStepContent: ['comment.vulgarity.content1', 'comment.vulgarity.content2']
}, },
general: { general: {
commentType: 'comment.type.disrespectful', commentType: 'comment.type.disrespectful',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment