diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 778b3fcbb..4b39cf022 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -51,6 +51,7 @@ # supports_chat :boolean default(FALSE), not null # gently :boolean default(FALSE), not null # kobold :boolean default(FALSE), not null +# froze :boolean # class Account < ApplicationRecord @@ -172,6 +173,10 @@ class Account < ApplicationRecord moved_to_account_id.present? end + def frozen? + local? ? (self&.user.nil? ? true : user.disabled?) : frozen + end + def bot? %w(Application Service).include? actor_type end |