From: Eugen Rochko Date: Fri, 11 Feb 2022 20:16:23 +0000 (+0100) Subject: Change reblogs to not count towards hashtag trends anymore (#17501) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a27729ee48aab4d75d562c2007b9967333c65d29;p=mastodon.git Change reblogs to not count towards hashtag trends anymore (#17501) --- diff --git a/app/models/trends/tags.rb b/app/models/trends/tags.rb index a425fd207..2ea4550df 100644 --- a/app/models/trends/tags.rb +++ b/app/models/trends/tags.rb @@ -11,12 +11,9 @@ class Trends::Tags < Trends::Base } def register(status, at_time = Time.now.utc) - original_status = status.reblog? ? status.reblog : status + return unless !status.reblog? && status.public_visibility? && !status.account.silenced? - return unless original_status.public_visibility? && status.public_visibility? && - !original_status.account.silenced? && !status.account.silenced? - - original_status.tags.each do |tag| + status.tags.each do |tag| add(tag, status.account_id, at_time) if tag.usable? end end