Merge branch 'master' into glitch-soc/merge-upstream

This commit is contained in:
Thibaut Girka
2018-08-22 20:56:32 +02:00
103 changed files with 757 additions and 167 deletions

View File

@@ -196,6 +196,13 @@ class Account < ApplicationRecord
ResolveAccountService.new.call(acct)
end
def suspend!
transaction do
user&.disable! if local?
update!(suspended: true)
end
end
def unsuspend!
transaction do
user&.enable! if local?