mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-16 22:53:25 +01:00
条件が逆だったのを修正
This commit is contained in:
parent
de238b70d7
commit
fa8d905484
1 changed files with 2 additions and 2 deletions
|
@ -55,12 +55,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
throw new ApiError(meta.errors.noSuchChannel);
|
||||
}
|
||||
|
||||
// Check if already muting
|
||||
// Check muting
|
||||
const exist = await this.channelMutingService.isMuted({
|
||||
requestUserId: me.id,
|
||||
targetChannelId: targetChannel.id,
|
||||
});
|
||||
if (exist) {
|
||||
if (!exist) {
|
||||
throw new ApiError(meta.errors.notMuting);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue