This commit is contained in:
KMY 2025-04-03 07:17:26 +09:00
parent 28a08ce478
commit f24f83d9b0
2 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ class Settings::PrivacyExtraController < Settings::BaseController
def update
if UpdateAccountService.new.call(@account, account_params.except(:settings))
current_user.update!(settings_attributes: account_params[:settings])
ActivityPub::UpdateDistributionWorker.perform_async(@account.id)
ActivityPub::UpdateDistributionWorker.perform_in(ActivityPub::UpdateDistributionWorker::DEBOUNCE_DELAY, @account.id)
redirect_to settings_privacy_extra_path, notice: I18n.t('generic.changes_saved_msg')
else
render :show