|
|
@ -15,8 +15,6 @@ class Api::SubscriptionsController < ApiController |
|
|
|
body = request.body.read |
|
|
|
body = request.body.read |
|
|
|
subscription = @account.subscription(api_subscription_url(@account.id)) |
|
|
|
subscription = @account.subscription(api_subscription_url(@account.id)) |
|
|
|
|
|
|
|
|
|
|
|
Rails.logger.debug body |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if subscription.verify(body, request.headers['HTTP_X_HUB_SIGNATURE']) |
|
|
|
if subscription.verify(body, request.headers['HTTP_X_HUB_SIGNATURE']) |
|
|
|
ProcessFeedService.new.call(body, @account) |
|
|
|
ProcessFeedService.new.call(body, @account) |
|
|
|
head 201 |
|
|
|
head 201 |
|
|
|