From 65ae9637d6cc7a9d351e8f83993ef138a01b1485 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 10 Oct 2016 03:40:08 +0200 Subject: PuSH unsubscribe needs correct callback URL --- app/services/block_domain_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/block_domain_service.rb b/app/services/block_domain_service.rb index 075460605..ac658a050 100644 --- a/app/services/block_domain_service.rb +++ b/app/services/block_domain_service.rb @@ -4,7 +4,7 @@ class BlockDomainService < BaseService Account.where(domain: domain).find_each do |account| if account.subscribed? - account.subscription('').unsubscribe + account.subscription(api_subscription_url(account.id)).unsubscribe end account.destroy! -- cgit