1
0
Fork 0

Write telegram message caption in the toot
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Daniele Tricoli 2022-03-05 03:15:26 +01:00
parent a9fdaca4d8
commit 833ad0186e

View file

@ -97,6 +97,9 @@ the specified Mastodon account.`,
mediaIds := [...]mastodon.ID{attachment.ID}
status, err := c.PostStatus(context.Background(), &mastodon.Toot{
// Write the caption in the toot because it almost probably
// doesn't describe the image.
Status: update.Message.Caption,
MediaIDs: mediaIds[:],
Visibility: parseMastodonVisibility(os.Getenv(MASTODON_TOOT_VISIBILITY)),
})