Write telegram message caption in the toot
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a9fdaca4d8
commit
833ad0186e
|
@ -97,6 +97,9 @@ the specified Mastodon account.`,
|
||||||
|
|
||||||
mediaIds := [...]mastodon.ID{attachment.ID}
|
mediaIds := [...]mastodon.ID{attachment.ID}
|
||||||
status, err := c.PostStatus(context.Background(), &mastodon.Toot{
|
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[:],
|
MediaIDs: mediaIds[:],
|
||||||
Visibility: parseMastodonVisibility(os.Getenv(MASTODON_TOOT_VISIBILITY)),
|
Visibility: parseMastodonVisibility(os.Getenv(MASTODON_TOOT_VISIBILITY)),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue