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:
parent
d3b4d4d4f3
commit
a85c2c8ead
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue