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, { await this.noteUpdateService.update(actor, originNote, {
cw, cw,
text, text,
updatedAt: note.updated, updatedAt: new Date(note.updated),
}, silent); }, silent);
} }

View file

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

View file

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