From ddd8566efc7c2c155f89823db5bfe39a1613648f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 8 Jul 2024 13:50:33 +0200 Subject: [PATCH] Add debug info in log --- src/Mastodon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mastodon.ts b/src/Mastodon.ts index f7c4900..376ab18 100644 --- a/src/Mastodon.ts +++ b/src/Mastodon.ts @@ -90,7 +90,7 @@ export default class MastodonPoster { ${text.split("\n").map(txt => " > " + txt).join("\n")}`) return {id: "some_id"} } - console.log("Uploading message", text.substring(0, 25) + "...", `(length ${text.length}, link23: ${MastodonPoster.length23(text)})`) + console.log("Uploading message ("+(options.mediaIds?.length ?? "no"),"attachments):\n", text.substring(0, 25) + "...", `(length ${text.length}, link23: ${MastodonPoster.length23(text)})`) console.log(text.split("\n").map(txt => " > " + txt).join("\n")) const statusUpdate = await this.instance.v1.statuses.create({ visibility: 'public',