diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-26 01:25:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 01:25:29 +0100 |
commit | 025a2ceb0f31b4672479418ba0ae784cdfe3b0c6 (patch) | |
tree | 107a4d73b58a9b1c77962f87bf9f629340bce1c5 /app/models/tag.rb | |
parent | b4f785c1f46693c4e42b035e6728f99aac1b85db (diff) | |
parent | 3304df0ab559d9cec4da60a512460f26f07a56d3 (diff) |
Merge pull request #1637 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/tag.rb')
-rw-r--r-- | app/models/tag.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/tag.rb b/app/models/tag.rb index f35d92b5d..a64042614 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -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 |