mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
When banning without commentid.
This commit is contained in:
@@ -441,6 +441,7 @@ UserService.ban = (id, comment_id) => {
|
||||
.then(() => {
|
||||
// Set status of the user to banned
|
||||
return UserService.setStatus(id, 'banned').then(() => {
|
||||
// Only if it was rejected based on a specific comment.
|
||||
// Reject the comment that the user was ban for.
|
||||
return Comment.setStatus(comment_id, 'rejected');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user