Avoid latest featured tag use on post removal unless necessary (#32787)
This commit is contained in:
parent
871e3b25e8
commit
2bea74e69d
4 changed files with 58 additions and 12 deletions
|
@ -115,7 +115,7 @@ class RemoveStatusService < BaseService
|
|||
|
||||
def remove_from_hashtags
|
||||
@account.featured_tags.where(tag_id: @status.tags.map(&:id)).find_each do |featured_tag|
|
||||
featured_tag.decrement(@status.id)
|
||||
featured_tag.decrement(@status)
|
||||
end
|
||||
|
||||
return unless @status.public_visibility?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue