diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb index 6bce165629..62b3d9550a 100644 --- a/app/models/preview_card.rb +++ b/app/models/preview_card.rb @@ -75,10 +75,10 @@ class PreviewCard < ApplicationRecord end def trendable? - if attributes['trendable'].nil? + if attributes['trendable'].nil? && provider.present? provider&.trendable? else - attributes['trendable'] + boolean_with_default('trendable', Setting.trendable_by_default) end end