Browse Source

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

closed-social-glitch-2
Eugen Rochko 2 years ago
committed by GitHub
parent
commit
a27729ee48
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      app/models/trends/tags.rb

+ 2
- 5
app/models/trends/tags.rb View File

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

Loading…
Cancel
Save