Add markdown config translation

This commit is contained in:
KMY 2023-07-07 08:56:01 +09:00
parent eaa1f9e450
commit 5436b8796d
8 changed files with 19 additions and 2 deletions

View file

@ -5,6 +5,12 @@ class UpdateAccountService < BaseService
was_locked = account.locked
update_method = raise_error ? :update! : :update
if account.user && params.key?(:bio_markdown)
user_params = { settings_attributes: { bio_markdown: params['bio_markdown'] } }
params.delete(:bio_markdown)
account.user.send(update_method, user_params)
end
account.send(update_method, params).tap do |ret|
next unless ret