Add discoverable_local setting

This commit is contained in:
KMY 2023-08-09 13:21:54 +09:00
parent 88339b3657
commit 790ffc1e4e
7 changed files with 25 additions and 1 deletions

View file

@ -10,6 +10,11 @@ class UpdateAccountService < BaseService
params.delete(:bio_markdown)
account.user.send(update_method, user_params)
end
if account.user && params.key?(:discoverable_local)
user_params = { settings_attributes: { discoverable_local: params['discoverable_local'] } }
params.delete(:discoverable_local)
account.user.send(update_method, user_params)
end
account.send(update_method, params).tap do |ret|
next unless ret