From 748cdca02bb7fe4b5ad113bfe2820fc43a29f980 Mon Sep 17 00:00:00 2001 From: fruye Date: Thu, 16 Mar 2023 20:33:51 +0100 Subject: [PATCH] Set in_reply_to_account_id attribute for statuses from misskey This change will make pleroma FE connected to calckey server show the 'Reply to' badge. --- megalodon/src/misskey/api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megalodon/src/misskey/api_client.ts b/megalodon/src/misskey/api_client.ts index b6e5bc9..91693d3 100644 --- a/megalodon/src/misskey/api_client.ts +++ b/megalodon/src/misskey/api_client.ts @@ -226,7 +226,7 @@ namespace MisskeyAPI { url: n.uri ? n.uri : `https://${host}/notes/${n.id}`, account: user(n.user), in_reply_to_id: n.replyId, - in_reply_to_account_id: null, + in_reply_to_account_id: n.reply?.userId ?? null, reblog: n.renote ? note(n.renote, host) : null, content: n.text ? n.text