Fix videos being incorrectly labelled as isUpcoming = true (#5800)

This commit is contained in:
absidue 2026-07-11 07:33:23 +02:00 committed by GitHub
parent 6373ac7814
commit 9e8d102c94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ struct SearchVideo
end
def upcoming?
premiere_timestamp ? true : false
premiere_timestamp.try { |t| t.to_unix > 0 } ? true : false
end
end