From 78448b85c180a67f0e64b234146b15630003f6b4 Mon Sep 17 00:00:00 2001 From: David Jay Date: Fri, 9 Dec 2016 15:11:13 -0500 Subject: [PATCH 1/4] Updating to reflect new comment api. --- client/coral-plugin-commentbox/CommentBox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js index 0167d517f..501d2ecc9 100644 --- a/client/coral-plugin-commentbox/CommentBox.js +++ b/client/coral-plugin-commentbox/CommentBox.js @@ -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')); From cb576dca8f8355043f43fd42f62966014c2257ec Mon Sep 17 00:00:00 2001 From: David Jay Date: Mon, 12 Dec 2016 15:52:34 -0500 Subject: [PATCH 2/4] Updating signup endpoint to reflect current api. --- client/coral-framework/actions/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-framework/actions/auth.js b/client/coral-framework/actions/auth.js index d027dcd9e..e64755435 100644 --- a/client/coral-framework/actions/auth.js +++ b/client/coral-framework/actions/auth.js @@ -73,7 +73,7 @@ const signUpFailure = error => ({type: actions.FETCH_SIGNUP_FAILURE, error}); export const fetchSignUp = formData => dispatch => { dispatch(signUpRequest()); - coralApi('/user', {method: 'POST', body: formData}) + coralApi('/users', {method: 'POST', body: formData}) .then(({user}) => { dispatch(signUpSuccess(user)); setTimeout(() =>{ From e88e8212f47f255ca88e5064a8f14a49e85fccbc Mon Sep 17 00:00:00 2001 From: David Jay Date: Mon, 12 Dec 2016 20:33:55 -0500 Subject: [PATCH 3/4] Updating translations. --- client/coral-admin/src/translations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-admin/src/translations.json b/client/coral-admin/src/translations.json index e23326804..6f530956c 100644 --- a/client/coral-admin/src/translations.json +++ b/client/coral-admin/src/translations.json @@ -101,7 +101,7 @@ }, "configure": { "enable-pre-moderation": "Habilitar pre-moderación", - "enable-pre-moderation-text": "tracundeme!", + "enable-pre-moderation-text": "Los moderadores deben aprobar cualquier comentario antes de que sea publicado.", "include-comment-stream": "Incluir la Descripción a un Hilo de Comentario para los y las Lectoras.", "include-comment-stream-desc": "Escribir un mensaje que será agregado a la parte de arriba del tu hilo de comentarios. Por ejemplo, un tema, guias de comunidad, etc.", "include-text": "Incluir tu texto aqui.", From b895dbc8cd7e6028910c4f0e081e0476a6cfd763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriela=20Rodr=C3=ADguez=20Ber=C3=B3n?= Date: Mon, 12 Dec 2016 22:38:53 -0800 Subject: [PATCH 4/4] Update translations.json --- client/coral-admin/src/translations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-admin/src/translations.json b/client/coral-admin/src/translations.json index 6f530956c..e462f7567 100644 --- a/client/coral-admin/src/translations.json +++ b/client/coral-admin/src/translations.json @@ -101,7 +101,7 @@ }, "configure": { "enable-pre-moderation": "Habilitar pre-moderación", - "enable-pre-moderation-text": "Los moderadores deben aprobar cualquier comentario antes de que sea publicado.", + "enable-pre-moderation-text": "Los moderadores deben aprobar cada comentario antes de que sea publicado.", "include-comment-stream": "Incluir la Descripción a un Hilo de Comentario para los y las Lectoras.", "include-comment-stream-desc": "Escribir un mensaje que será agregado a la parte de arriba del tu hilo de comentarios. Por ejemplo, un tema, guias de comunidad, etc.", "include-text": "Incluir tu texto aqui.",