diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-02-08 23:09:47 +0000 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:21 -0500 |
commit | a7aa2544e4f5926414af75e5c0acaa06c2ec7873 (patch) | |
tree | eadfe45f2d2abb8b7beda16ad47baaddc7e56ae4 /app/services/process_hashtags_service.rb | |
parent | 9a94d5e2c5c2a3a48ef2a91c07be873e95245afc (diff) |
community world tl + networked home tl
Diffstat (limited to 'app/services/process_hashtags_service.rb')
-rw-r--r-- | app/services/process_hashtags_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb index d5ec076a8..fb89f6c5b 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 = Extractor.extract_hashtags(status.text) if status.local? + tags = Extractor.extract_hashtags(status.text) if status.network? records = [] tags.map { |str| str.mb_chars.downcase }.uniq(&:to_s).each do |name| @@ -11,7 +11,7 @@ class ProcessHashtagsService < BaseService status.tags << tag records << tag - TrendingTags.record_use!(tag, status.account, status.created_at) if status.public_visibility? + TrendingTags.record_use!(tag, status.account, status.created_at) if status.distributable? end return unless status.public_visibility? || status.unlisted_visibility? |