From a85c2c8eadcf2ed26a40381e95a661e7f510fd52 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Tue, 21 Feb 2023 12:35:18 +0900 Subject: [PATCH] Fix links are not on trends without review --- app/models/preview_card.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb index 6bce1656292..62b3d9550ac 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