Fix error on trending hashtags/links pages in admin UI due to missing constant (#17044)
This commit is contained in:
@@ -84,6 +84,10 @@ class PreviewCard < ApplicationRecord
|
||||
attributes['trendable'].nil? && (provider.nil? || provider.requires_review_notification?)
|
||||
end
|
||||
|
||||
def decaying?
|
||||
max_score_at && max_score_at >= Trends.links.options[:max_score_cooldown].ago && max_score_at < 1.day.ago
|
||||
end
|
||||
|
||||
attr_writer :provider
|
||||
|
||||
def local?
|
||||
|
@@ -80,6 +80,10 @@ class Tag < ApplicationRecord
|
||||
requires_review? && !requested_review?
|
||||
end
|
||||
|
||||
def decaying?
|
||||
max_score_at && max_score_at >= Trends.tags.options[:max_score_cooldown].ago && max_score_at < 1.day.ago
|
||||
end
|
||||
|
||||
def history
|
||||
@history ||= Trends::History.new('tags', id)
|
||||
end
|
||||
|
Reference in New Issue
Block a user