about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-15 12:56:00 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-15 14:12:16 -0500
commit29643fd6c42bcee5a1d6a4a137256b33996c60f2 (patch)
treed1a101068e038d6e0da6d37708f8b1c82c3120df /app/controllers
parent992bd7c752ff3fc37ff35713420e74dc7ea7b576 (diff)
make blocking domains actually block the accounts
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/domain_blocks_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/domain_blocks_controller.rb b/app/controllers/api/v1/domain_blocks_controller.rb
index af9e7a20f..21c9d3aae 100644
--- a/app/controllers/api/v1/domain_blocks_controller.rb
+++ b/app/controllers/api/v1/domain_blocks_controller.rb
@@ -23,6 +23,7 @@ class Api::V1::DomainBlocksController < Api::BaseController
 
   def destroy
     current_account.unblock_domain!(domain_block_params[:domain])
+    AfterAccountDomainUnblockWorker.perform_async(current_account.id, domain_block_params[:domain])
     render_empty
   end