Skip to content

Commit

Permalink
Fix posts made in the future being allowed to trend (mastodon#32996)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Nov 20, 2024
1 parent 174c687 commit e68b26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/trends/statuses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def klass
private

def eligible?(status)
status.public_visibility? && status.account.discoverable? && !status.account.silenced? && !status.account.sensitized? && status.spoiler_text.blank? && !status.sensitive? && !status.reply? && valid_locale?(status.language)
status.created_at.past? && status.public_visibility? && status.account.discoverable? && !status.account.silenced? && !status.account.sensitized? && status.spoiler_text.blank? && !status.sensitive? && !status.reply? && valid_locale?(status.language)
end

def calculate_scores(statuses, at_time)
Expand Down

0 comments on commit e68b26c

Please sign in to comment.