add content and tag to ap safelist
Some checks failed
Lint / lint (sw) (push) Blocked by required conditions
Lint / typecheck (backend) (push) Blocked by required conditions
Lint / typecheck (misskey-js) (push) Blocked by required conditions
Lint / typecheck (sw) (push) Blocked by required conditions
Lint / pnpm_install (push) Successful in 1m49s
Test (production install and build) / production (22.11.0) (push) Successful in 1m0s
Publish Docker image / Build (push) Successful in 4m42s
Lint / lint (backend) (push) Successful in 2m5s
Lint / lint (frontend) (push) Successful in 1m52s
Lint / lint (frontend-embed) (push) Successful in 2m3s
Test (backend) / unit (22.11.0) (push) Failing after 8m4s
Lint / lint (misskey-bubble-game) (push) Successful in 1m58s
Lint / lint (frontend-shared) (push) Has been cancelled
Lint / lint (misskey-reversi) (push) Has been cancelled
Lint / lint (misskey-js) (push) Has been cancelled

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-21 12:23:43 -06:00
parent 7a0067460b
commit d25fa27c24
No known key found for this signature in database

View file

@ -195,6 +195,8 @@ export interface IActivity extends IObject {
export interface SafeList { export interface SafeList {
id: string; id: string;
content: string | null;
tag: IObject | IObject[];
published: string; published: string;
visibility: string; visibility: string;
mentionedUsers: any[]; mentionedUsers: any[];
@ -204,6 +206,8 @@ export interface SafeList {
function extractSafe(object: IObject): Partial<SafeList> { function extractSafe(object: IObject): Partial<SafeList> {
return { return {
id: object.id, id: object.id,
content: object.content,
tag: object.tag,
published: object.published, published: object.published,
visibility: object.visibility, visibility: object.visibility,
mentionedUsers: object.mentionedUsers, mentionedUsers: object.mentionedUsers,