From 7ccf9552c20d4de935a23d6a202bce55cac4f811 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 5 May 2017 13:14:34 -0600 Subject: [PATCH 1/2] Added privacy fix --- models/user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/models/user.js b/models/user.js index dd30e8033..458ac68f0 100644 --- a/models/user.js +++ b/models/user.js @@ -136,6 +136,14 @@ const UserSchema = new mongoose.Schema({ timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' + }, + + toJSON: { + transform: function (doc, ret) { + delete ret.password; + delete ret._id; + delete ret.__v; + } } }); From f8e8eef989d125925adec83744c406409b24a3ff Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Fri, 5 May 2017 14:05:52 -0600 Subject: [PATCH 2/2] float: right; in css is just fine. --- .../coral-configure/components/ConfigureCommentStream.css | 6 ++---- client/coral-configure/components/ConfigureCommentStream.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/client/coral-configure/components/ConfigureCommentStream.css b/client/coral-configure/components/ConfigureCommentStream.css index 335c94377..a8cbc36cb 100644 --- a/client/coral-configure/components/ConfigureCommentStream.css +++ b/client/coral-configure/components/ConfigureCommentStream.css @@ -3,10 +3,8 @@ } .apply { - position: absolute; - top: 38%; - transform: translateX(-50%); - right: 0; + float: right; + margin: 0 10px; } .wrapper ul { diff --git a/client/coral-configure/components/ConfigureCommentStream.js b/client/coral-configure/components/ConfigureCommentStream.js index bef53e1ef..6c00b5996 100644 --- a/client/coral-configure/components/ConfigureCommentStream.js +++ b/client/coral-configure/components/ConfigureCommentStream.js @@ -12,7 +12,6 @@ export default ({handleChange, handleApply, changed, ...props}) => (

{lang.t('configureCommentStream.title')}

-

{lang.t('configureCommentStream.description')}

+

{lang.t('configureCommentStream.description')}