1
0
mirror of https://github.com/mastodon/mastodon synced 2025-01-08 19:03:05 +09:00

Fix posts made in the future being allowed to trend (#32996)

This commit is contained in:
Claire 2024-11-20 13:41:22 +01:00
parent f81cfdac55
commit a43d469e82

View File

@ -106,7 +106,7 @@ class Trends::Statuses < Trends::Base
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)