mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 12:56:43 -06:00
fix: permissions & types
This commit is contained in:
parent
8c446c0e78
commit
38a0a2f1a7
3 changed files with 6 additions and 2 deletions
|
@ -371,7 +371,7 @@ export class ApNoteService {
|
|||
await this.noteUpdateService.update(actor, originNote, {
|
||||
cw,
|
||||
text,
|
||||
updatedAt: note.updated,
|
||||
updatedAt: new Date(note.updated),
|
||||
}, silent);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -272,6 +272,10 @@ export const packedRolePoliciesSchema = {
|
|||
type: 'integer',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
canEditNote: {
|
||||
type: 'boolean',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue