mirror of
https://github.com/wassname/talk.git
synced 2026-10-28 13:30:17 +08:00
Cleaned up some routes
This commit is contained in:
1 parent
17813e23a9
commit
d7a6bf9e1f
6 files changed
+38
-25
No files matched your search
@@ -152,7 +152,7 @@ router.post('/:user_id/actions', authorization.needed(), (req, res, next) => {
|
||||
.then((action) => {
|
||||
|
||||
// Set the user status to "pending" for review by moderators
|
||||
if (action_type.slice(0, 4) === 'FLAG') {
|
||||
if (action_type === 'FLAG') {
|
||||
return UsersService.setStatus(req.params.user_id, 'PENDING')
|
||||
.then(() => action);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user