refactor(private-messages): cleanup block-user

This commit is contained in:
Tyler Renelle
2014-11-20 20:14:52 -07:00
parent 7bf54f569b
commit 697694c69d
2 changed files with 2 additions and 11 deletions
+1 -10
View File
@@ -45,13 +45,4 @@ api.sendPrivateMessage = function(req,res,next){
res.send(200);
})
}
api.block = function(req,res,next){
var b = res.locals.user.inbox;
if (~b.blocks.indexOf(req.params.id)){
b.blocks.push(req.params.id)
res.locals.user.save();
}
res.send(200);
}
}
+1 -1
View File
@@ -601,7 +601,7 @@ module.exports = (swagger, v2) ->
path 'uuid', 'The UUID of the member to message', 'string'
]
middleware: [auth.auth]
action: members.block
action: user.blockUser
# ---------------------------------
# Hall of Heroes / Patrons