Skip to content

Commit

Permalink
fix: "forwarded from" string formatting (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaim authored Jun 10, 2024
1 parent 24a9218 commit 0c50b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *Service) handler(ctx context.Context, b *bot.Bot, m *models.Update) {
if originUsername != "" {
content = fmt.Sprintf("Forwarded from [%s](https://t.me/%s)\n%s", originName, originUsername, content)
} else {
content = fmt.Sprintf("%s\n---\nForwarded from %s", originName, content)
content = fmt.Sprintf("Forwarded from %s\n%s", originName, content)
}
}

Expand Down

0 comments on commit 0c50b9e

Please sign in to comment.