1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix links are not on trends without review

This commit is contained in:
Jeong Arm 2023-02-21 12:35:18 +09:00
parent d3b4d4d4f3
commit a85c2c8ead

View file

@ -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