mirror of https://github.com/mastodon/mastodon.git
Fix links are not on trends without review
parent
d3b4d4d4f3
commit
a85c2c8ead
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue