Fix links are not on trends without review

pull/23783/head
Jeong Arm 2023-02-21 12:35:18 +09:00
parent d3b4d4d4f3
commit a85c2c8ead
1 changed files with 2 additions and 2 deletions

View File

@ -75,10 +75,10 @@ class PreviewCard < ApplicationRecord
end end
def trendable? def trendable?
if attributes['trendable'].nil? if attributes['trendable'].nil? && provider.present?
provider&.trendable? provider&.trendable?
else else
attributes['trendable'] boolean_with_default('trendable', Setting.trendable_by_default)
end end
end end