aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d41be58..685a73d 100644
--- a/main.go
+++ b/main.go
@@ -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]) + " …"
}