From 8736560e5ff9e9038a48e7f26e01ec66ad3c00d5 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 29 Oct 2023 21:51:12 +0100 Subject: [PATCH] fix: reply edits not staying attached --- packages/megalodon/src/misskey.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index a8c7c44d00..69a8972d61 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -1148,6 +1148,7 @@ export default class Misskey implements MegalodonInterface { media_ids?: Array | null poll?: { options?: Array; expires_in?: number; multiple?: boolean; hide_totals?: boolean } visibility?: "public" | "unlisted" | "private" | "direct" + in_reply_to_id?: string } ): Promise> { let params = { @@ -1160,6 +1161,11 @@ export default class Misskey implements MegalodonInterface { fileIds: _options.media_ids }) } + if (_options.in_reply_to_id) { + params = Object.assign(params, { + replyId: _options.in_reply_to_id + }) + } if (_options.poll) { let pollParam = { choices: _options.poll.options,