fix: permissions & types

This commit is contained in:
Nya Candy 2024-01-30 20:33:11 +08:00 committed by fly_mc
parent 8c446c0e78
commit 38a0a2f1a7
3 changed files with 6 additions and 2 deletions

View file

@ -371,7 +371,7 @@ export class ApNoteService {
await this.noteUpdateService.update(actor, originNote, {
cw,
text,
updatedAt: note.updated,
updatedAt: new Date(note.updated),
}, silent);
}

View file

@ -30,6 +30,7 @@ export interface IObject {
href?: string;
tag?: IObject | IObject[];
sensitive?: boolean;
updated?: string;
}
/**
@ -127,7 +128,6 @@ export interface IPost extends IObject {
_misskey_quote?: string;
_misskey_content?: string;
quoteUrl?: string;
updated?: Date;
}
export interface IQuestion extends IObject {

View file

@ -272,6 +272,10 @@ export const packedRolePoliciesSchema = {
type: 'integer',
optional: false, nullable: false,
},
canEditNote: {
type: 'boolean',
optional: false, nullable: false,
},
},
} as const;