mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 02:40:11 +08:00
Merge branch 'master' of github.com:coralproject/talk
This commit is contained in:
@@ -45,8 +45,7 @@ class CommentBox extends Component {
|
||||
postItem(comment, 'comments')
|
||||
.then((postedComment) => {
|
||||
const commentId = postedComment.id;
|
||||
const status = postedComment.status;
|
||||
if (status[0] && status[0].type === 'rejected') {
|
||||
if (postedComment.status === 'rejected') {
|
||||
addNotification('error', lang.t('comment-post-banned-word'));
|
||||
} else if (premod === 'pre') {
|
||||
addNotification('success', lang.t('comment-post-notif-premod'));
|
||||
|
||||
Reference in New Issue
Block a user