Add: #271 フィルターの期限リストに2w、1m、3m (#335)

This commit is contained in:
KMY(雪あすか) 2023-12-06 13:36:07 +09:00 committed by GitHub
parent 9829d9b28a
commit 534d66f904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class CustomFilter < ApplicationRecord
return @expires_in if defined?(@expires_in)
return nil if expires_at.nil?
[30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week].find { |expires_in| expires_in.from_now >= expires_at }
[30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week, 2.weeks, 1.month, 3.months].find { |expires_in| expires_in.from_now >= expires_at }
end
def irreversible=(value)