Skip to content
Snippets Groups Projects
Unverified Commit a27729ee authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Change reblogs to not count towards hashtag trends anymore (#17501)

parent a131f06e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment