From 22a8801dbc77d2d01b326a7cb89d1a28b054e073 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 9 Oct 2016 14:48:43 +0200 Subject: Adding domain blocks --- app/controllers/api/subscriptions_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/api/subscriptions_controller.rb b/app/controllers/api/subscriptions_controller.rb index c5190b136..c3aeee94d 100644 --- a/app/controllers/api/subscriptions_controller.rb +++ b/app/controllers/api/subscriptions_controller.rb @@ -13,8 +13,9 @@ class Api::SubscriptionsController < ApiController def update body = request.body.read + subscription = @account.subscription(api_subscription_url(@account.id)) - if @account.subscription(api_subscription_url(@account.id)).verify(body, request.headers['HTTP_X_HUB_SIGNATURE']) + if subscription.verify(body, request.headers['HTTP_X_HUB_SIGNATURE']) ProcessFeedService.new.call(body, @account) head 201 else -- cgit