Fix: #588 リモート保留中ユーザーに関して、サスペンドから戻す操作を削除 (#589)

* Fix: #588 リモート保留中ユーザーに関して、サスペンドから戻す操作を削除

* 条件を書く場所を変更

* 各アカウントの画面を調整
This commit is contained in:
KMY(雪あすか) 2024-02-18 08:37:22 +09:00 committed by GitHub
parent 0a6e68255f
commit 1b3c0e3fb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 30 additions and 4 deletions

View file

@ -303,8 +303,7 @@ class Account < ApplicationRecord
end
def reject_remote!
update!(remote_pending: false)
suspend!
update!(remote_pending: false, suspension_origin: :local)
end
def sensitized?