diff options
Diffstat (limited to 'app/services/process_hashtags_service.rb')
-rw-r--r-- | app/services/process_hashtags_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb index df30f73ae..3bf3471ec 100644 --- a/app/services/process_hashtags_service.rb +++ b/app/services/process_hashtags_service.rb @@ -1,8 +1,8 @@ +# frozen_string_literal: true + class ProcessHashtagsService < BaseService def call(status, tags = []) - if status.local? - tags = status.text.scan(Tag::HASHTAG_RE).map(&:first) - end + tags = status.text.scan(Tag::HASHTAG_RE).map(&:first) if status.local? tags.map(&:downcase).uniq.each do |tag| status.tags << Tag.where(name: tag).first_or_initialize(name: tag) |