mirror of
https://github.com/paricafe/misskey.git
synced 2025-02-17 18:17:29 -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, {
|
await this.noteUpdateService.update(actor, originNote, {
|
||||||
cw,
|
cw,
|
||||||
text,
|
text,
|
||||||
updatedAt: note.updated,
|
updatedAt: new Date(note.updated),
|
||||||
}, silent);
|
}, silent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue