fix: typecheck
This commit is contained in:
parent
592027cf68
commit
9a9f61a6c0
@ -10,6 +10,7 @@ export const meta = {
|
|||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireModerator: true,
|
requireModerator: true,
|
||||||
|
kind: 'write:admin:approve-user',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
@ -8,6 +8,7 @@ export const meta = {
|
|||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireModerator: true,
|
requireModerator: true,
|
||||||
|
kind: 'write:admin:nsfw-user',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
@ -9,6 +9,7 @@ export const meta = {
|
|||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireModerator: true,
|
requireModerator: true,
|
||||||
|
kind: 'write:admin:silence-user',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
@ -8,6 +8,7 @@ export const meta = {
|
|||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireModerator: true,
|
requireModerator: true,
|
||||||
|
kind: 'write:admin:unnsfw-user',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
@ -8,6 +8,7 @@ export const meta = {
|
|||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireModerator: true,
|
requireModerator: true,
|
||||||
|
kind: 'write:admin:unsilence-user',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
@ -6,6 +6,7 @@ import { ApiError } from '../../../error.js';
|
|||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
kind: 'read:account',
|
||||||
|
|
||||||
secure: false,
|
secure: false,
|
||||||
|
|
||||||
|
@ -13,12 +13,12 @@ import { NoteEntityService } from '@/core/entities/NoteEntityService.js';
|
|||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { RoleService } from '@/core/RoleService.js';
|
import { RoleService } from '@/core/RoleService.js';
|
||||||
import type { MiMeta } from '@/models/Meta.js';
|
import type { MiMeta } from '@/models/Meta.js';
|
||||||
import Channel from '../channel.js';
|
import Channel, { MiChannelService } from '../channel.js';
|
||||||
|
|
||||||
class BubbleTimelineChannel extends Channel {
|
class BubbleTimelineChannel extends Channel {
|
||||||
public readonly chName = 'bubbleTimeline';
|
public readonly chName = 'bubbleTimeline';
|
||||||
public static shouldShare = false;
|
public static shouldShare = false;
|
||||||
public static requireCredential = false;
|
public static requireCredential = false as const;
|
||||||
private withRenotes: boolean;
|
private withRenotes: boolean;
|
||||||
private withFiles: boolean;
|
private withFiles: boolean;
|
||||||
private withBots: boolean;
|
private withBots: boolean;
|
||||||
@ -100,9 +100,10 @@ class BubbleTimelineChannel extends Channel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class BubbleTimelineChannelService {
|
export class BubbleTimelineChannelService implements MiChannelService<false> {
|
||||||
public readonly shouldShare = BubbleTimelineChannel.shouldShare;
|
public readonly shouldShare = BubbleTimelineChannel.shouldShare;
|
||||||
public readonly requireCredential = BubbleTimelineChannel.requireCredential;
|
public readonly requireCredential = BubbleTimelineChannel.requireCredential;
|
||||||
|
public readonly kind = BubbleTimelineChannel.kind;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private metaService: MetaService,
|
private metaService: MetaService,
|
||||||
|
@ -60,6 +60,11 @@ export const permissions = [
|
|||||||
'read:admin:show-user',
|
'read:admin:show-user',
|
||||||
'read:admin:show-users',
|
'read:admin:show-users',
|
||||||
'write:admin:suspend-user',
|
'write:admin:suspend-user',
|
||||||
|
'write:admin:approve-user',
|
||||||
|
'write:admin:nsfw-user',
|
||||||
|
'write:admin:unnsfw-user',
|
||||||
|
'write:admin:silence-user',
|
||||||
|
'write:admin:unsilence-user',
|
||||||
'write:admin:unset-user-avatar',
|
'write:admin:unset-user-avatar',
|
||||||
'write:admin:unset-user-banner',
|
'write:admin:unset-user-banner',
|
||||||
'write:admin:unsuspend-user',
|
'write:admin:unsuspend-user',
|
||||||
|
Loading…
Reference in New Issue
Block a user