Add discoverable_local setting
This commit is contained in:
parent
88339b3657
commit
790ffc1e4e
7 changed files with 25 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue