diff options
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ func (t Tweet) Atomify() *atom.Entry { entry := new(atom.Entry) entry.Title = "@" + t.From + ": " + t.Content - if len(entry.Title) > titlelimit { + if len([]rune(entry.Title)) > titlelimit { entry.Title = string([]rune(entry.Title)[:titlelimit-2]) + " …" } |