[API] Check post dupulication

This commit is contained in:
syuilo
2017-03-25 15:56:26 +09:00
parent c8479d103f
commit 47269a1782
3 changed files with 26 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ export default (
_user.id = _user._id;
delete _user._id;
// Remove needless properties
delete _user.lates_post;
// Remove private properties
delete _user.password;
delete _user.token;