diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-26 15:24:14 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-26 15:24:14 +0100 |
commit | 950312bada605e9df832aa05fe5010450af9a567 (patch) | |
tree | a8f10174fbdb7290c769e9468d3c5a18728faac0 /app | |
parent | 2cb3dc5e5a1320efda89b258048e7bc3542a5744 (diff) |
Fix #278 - Use mb_chars.downcase on hashtags
Diffstat (limited to 'app')
-rw-r--r-- | app/services/process_hashtags_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb index 3bf3471ec..fa14c44da 100644 --- a/app/services/process_hashtags_service.rb +++ b/app/services/process_hashtags_service.rb @@ -4,7 +4,7 @@ class ProcessHashtagsService < BaseService def call(status, tags = []) tags = status.text.scan(Tag::HASHTAG_RE).map(&:first) if status.local? - tags.map(&:downcase).uniq.each do |tag| + tags.map { |str| str.mb_chars.downcase }.uniq.each do |tag| status.tags << Tag.where(name: tag).first_or_initialize(name: tag) end end |