Skip to content

Commit

Permalink
[grailstwitter] Hash tag length limited to 20 characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
pledbrook committed Aug 20, 2011
1 parent 8847ef7 commit e2a2bfe
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -13,7 +13,10 @@ class TagService {
def m = status.message =~ /#(\w+)/
def tags = [] as Set
for (match in m) {
tags << match[1]
// Limit tags to 20 characters or less.
if (match[1].size() <= 20) {
tags << match[1]
}
}

if (!tags) return
Expand Down

0 comments on commit e2a2bfe

Please sign in to comment.