1
0
Fork 0
forked from gitea/nas

Avoid latest featured tag use on post removal unless necessary (#32787)

This commit is contained in:
Claire 2024-11-06 11:51:54 +01:00 committed by GitHub
parent 871e3b25e8
commit 2bea74e69d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 58 additions and 12 deletions

View file

@ -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?