diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-03-14 16:44:35 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-03-14 16:44:35 +0100 |
commit | a945182b568d7aebd6b181b60f58b1e1880746c7 (patch) | |
tree | 6e84e0708e5e32fdcbf7c99e136882c1f809e252 /app/models | |
parent | 988f5bf0266483659b03f1b0926d0b9ff9e85a8f (diff) | |
parent | 91616004fe52805f9602aa444549486e4ef17839 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/instance.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/instance.rb b/app/models/instance.rb index c01c23077..36110ee40 100644 --- a/app/models/instance.rb +++ b/app/models/instance.rb @@ -32,8 +32,12 @@ class Instance < ApplicationRecord @delivery_failure_tracker ||= DeliveryFailureTracker.new(domain) end + def purgeable? + unavailable? || domain_block&.suspend? + end + def unavailable? - unavailable_domain.present? || domain_block&.suspend? + unavailable_domain.present? end def failing? |