From d25fa27c24222a4a7f1806bb3a563f5d56bebcd5 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Thu, 21 Nov 2024 12:23:43 -0600 Subject: [PATCH] add content and tag to ap safelist Signed-off-by: eternal-flame-AD --- packages/backend/src/core/activitypub/type.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/core/activitypub/type.ts b/packages/backend/src/core/activitypub/type.ts index 79c561d933..7200d04f5a 100644 --- a/packages/backend/src/core/activitypub/type.ts +++ b/packages/backend/src/core/activitypub/type.ts @@ -195,6 +195,8 @@ export interface IActivity extends IObject { export interface SafeList { id: string; + content: string | null; + tag: IObject | IObject[]; published: string; visibility: string; mentionedUsers: any[]; @@ -204,6 +206,8 @@ export interface SafeList { function extractSafe(object: IObject): Partial { return { id: object.id, + content: object.content, + tag: object.tag, published: object.published, visibility: object.visibility, mentionedUsers: object.mentionedUsers,