Add spacing
This commit is contained in:
parent
188b1caa04
commit
60b3fa2495
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ func mastodon_message(broker *tg.Broker, update tg.APIMessage) {
|
|||
return
|
||||
}
|
||||
|
||||
status, err := sendToot(strings.TrimSpace(fmt.Sprintf("%s\n(da %s)", *(update.Caption), update.User.FirstName)), attach.ID)
|
||||
status, err := sendToot(strings.TrimSpace(fmt.Sprintf("%s\n\n(da %s)", *(update.Caption), update.User.FirstName)), attach.ID)
|
||||
if err != nil {
|
||||
log.Printf("[mastodon] Send toot failed: %s\n", err.Error())
|
||||
broker.SendTextMessage(update.Chat, "<b>ERRORE!</b> @hamcha controlla la console!", &tg.MessageOptions{
|
||||
|
@ -127,7 +127,7 @@ func mastodon_message(broker *tg.Broker, update tg.APIMessage) {
|
|||
return
|
||||
}
|
||||
|
||||
status, err := sendToot(fmt.Sprintf("%s\n(da %s)", *(update.Text), update.User.FirstName), "")
|
||||
status, err := sendToot(fmt.Sprintf("%s\n\n(da %s)", *(update.Text), update.User.FirstName), "")
|
||||
if err != nil {
|
||||
log.Printf("[mastodon] Send toot failed: %s\n", err.Error())
|
||||
broker.SendTextMessage(update.Chat, "<b>ERRORE!</b> @hamcha controlla la console!", &tg.MessageOptions{
|
||||
|
|
Reference in a new issue