Merge branch 'develop' of https://github.com/syuilo/misskey into develop
This commit is contained in:
@ -32,6 +32,10 @@ export default define(meta, async (ps) => {
|
||||
throw new Error('user not found');
|
||||
}
|
||||
|
||||
if (user.isAdmin) {
|
||||
throw new Error('cannot mark as moderator if admin user');
|
||||
}
|
||||
|
||||
await Users.update(user.id, {
|
||||
isModerator: true
|
||||
});
|
||||
|
Reference in New Issue
Block a user