From 9383e3affd647ca5a5f8b5a5512bc69c5d7cd1c4 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Thu, 30 Nov 2023 04:05:11 +0100 Subject: [PATCH] upd: remove accidental additions --- packages/backend/src/core/activitypub/ApRendererService.ts | 3 +-- packages/backend/src/core/activitypub/type.ts | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts index 0b904889a2..7464593bb6 100644 --- a/packages/backend/src/core/activitypub/ApRendererService.ts +++ b/packages/backend/src/core/activitypub/ApRendererService.ts @@ -171,7 +171,7 @@ export class ApRendererService { mediaType: file.webpublicType ?? file.type, url: this.driveFileEntityService.getPublicUrl(file), name: file.comment, - description: file.comment, + summary: file.comment, }; } @@ -747,7 +747,6 @@ export class ApRendererService { summary: summary ?? undefined, content: content ?? undefined, updated: note.updatedAt?.toISOString(), - edited_at: note.updatedAt?.toISOString(), _misskey_content: text, source: { content: text, diff --git a/packages/backend/src/core/activitypub/type.ts b/packages/backend/src/core/activitypub/type.ts index 1ed28f21b1..ce3317ef72 100644 --- a/packages/backend/src/core/activitypub/type.ts +++ b/packages/backend/src/core/activitypub/type.ts @@ -11,7 +11,7 @@ export interface IObject { type: string | string[]; id?: string; name?: string | null; - summary?: string; + summary?: string | null; _misskey_summary?: string; published?: string; cc?: ApObject; @@ -121,7 +121,6 @@ export interface IPost extends IObject { quoteUrl?: string; quoteUri?: string; updated?: string; - edited_at?: string; } export interface IQuestion extends IObject { @@ -250,7 +249,6 @@ export interface IApDocument extends IObject { type: 'Document'; name: string | null; mediaType: string; - description: string | null; } export interface IApImage extends IObject {