Removed featured tags

We don't use
This commit is contained in:
mgabdev
2020-03-27 18:05:16 -04:00
parent 2bd344a594
commit 0532890c0e
35 changed files with 1 additions and 236 deletions

View File

@@ -15,9 +15,5 @@ class ProcessHashtagsService < BaseService
end
return unless status.public_visibility? || status.unlisted_visibility?
status.account.featured_tags.where(tag_id: records.map(&:id)).each do |featured_tag|
featured_tag.increment(status.created_at)
end
end
end

View File

@@ -137,10 +137,6 @@ class RemoveStatusService < BaseService
end
def remove_from_hashtags
@account.featured_tags.where(tag_id: @status.tags.pluck(:id)).each do |featured_tag|
featured_tag.decrement(@status.id)
end
return unless @status.public_visibility?
@tags.each do |hashtag|