From f49ed8c819f8d5e171b4a93f92a60936c0f3d93f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 10 Oct 2016 17:40:28 +0200 Subject: [PATCH] Log incoming Atom from PuSH --- app/controllers/api/subscriptions_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/subscriptions_controller.rb b/app/controllers/api/subscriptions_controller.rb index c3aeee94d4..b515937217 100644 --- a/app/controllers/api/subscriptions_controller.rb +++ b/app/controllers/api/subscriptions_controller.rb @@ -15,6 +15,8 @@ class Api::SubscriptionsController < ApiController body = request.body.read subscription = @account.subscription(api_subscription_url(@account.id)) + Rails.logger.debug body + if subscription.verify(body, request.headers['HTTP_X_HUB_SIGNATURE']) ProcessFeedService.new.call(body, @account) head 201