1
0
Fork 0
forked from gitea/nas

Add delay to profile updates to debounce them (#34137)

This commit is contained in:
KMY 2025-04-03 06:57:54 +09:00
parent 577361ca9a
commit bccc4131a3
11 changed files with 15 additions and 18 deletions

View file

@ -8,7 +8,7 @@ class Settings::VerificationsController < Settings::BaseController
def update
if UpdateAccountService.new.call(@account, account_params)
ActivityPub::UpdateDistributionWorker.perform_async(@account.id)
ActivityPub::UpdateDistributionWorker.perform_in(ActivityPub::UpdateDistributionWorker::DEBOUNCE_DELAY, @account.id)
redirect_to settings_verification_path, notice: I18n.t('generic.changes_saved_msg')
else
render :show