From d22cec81fb7c3222405cd49380b486d40323c5d4 Mon Sep 17 00:00:00 2001 From: abcang Date: Sat, 20 May 2017 03:19:14 +0900 Subject: Unify the method of extracting tags (#3138) --- app/services/process_hashtags_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb index 617a38159..990e01a4b 100644 --- a/app/services/process_hashtags_service.rb +++ b/app/services/process_hashtags_service.rb @@ -2,7 +2,7 @@ class ProcessHashtagsService < BaseService def call(status, tags = []) - tags = status.text.scan(Tag::HASHTAG_RE).map(&:first) if status.local? + tags = Extractor.extract_hashtags(status.text) if status.local? tags.map { |str| str.mb_chars.downcase }.uniq(&:to_s).each do |tag| status.tags << Tag.where(name: tag).first_or_initialize(name: tag) -- cgit