diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-26 01:15:32 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-11-26 01:15:32 +0100 |
commit | 3304df0ab559d9cec4da60a512460f26f07a56d3 (patch) | |
tree | 107a4d73b58a9b1c77962f87bf9f629340bce1c5 /app/models/preview_card.rb | |
parent | afd71867bad4cc826656bd8931b25c8ea8317fff (diff) | |
parent | 12b3ff6c6d70df1ce34f4b103b519250c9e2d2c8 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/preview_card.rb')
-rw-r--r-- | app/models/preview_card.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb index f2ab8ecab..0f9e23fa1 100644 --- a/app/models/preview_card.rb +++ b/app/models/preview_card.rb @@ -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? |