From 846f2d38779f42831c045fcaf822108026c32d9e Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 15:15:54 +0200 Subject: [PATCH] upd: megalodon changes --- packages/megalodon/src/misskey/api_client.ts | 2 +- packages/megalodon/src/misskey/entities/note.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 05971e9b7c..70e12cc152 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -252,7 +252,7 @@ namespace MisskeyAPI { return { id: n.id, uri: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '', - url: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '', + url: n.url ? n.url : host ? `https://${host}/notes/${n.id}` : '', account: user(n.user, host ? host : null), in_reply_to_id: n.replyId, in_reply_to_account_id: null, diff --git a/packages/megalodon/src/misskey/entities/note.ts b/packages/megalodon/src/misskey/entities/note.ts index cc8aa32062..08c5f10aea 100644 --- a/packages/megalodon/src/misskey/entities/note.ts +++ b/packages/megalodon/src/misskey/entities/note.ts @@ -23,6 +23,7 @@ namespace MisskeyEntity { replyId: string | null renoteId: string | null uri?: string + url?: string reply?: Note renote?: Note viaMobile?: boolean