Upgrade to Rails 5.0.0.1
This commit is contained in:
@ -4,7 +4,7 @@ class Api::SalmonController < ApiController
|
||||
|
||||
def update
|
||||
ProcessInteractionService.new.(request.body.read, @account)
|
||||
render nothing: true, status: 201
|
||||
head 201
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -4,9 +4,9 @@ class Api::SubscriptionsController < ApiController
|
||||
|
||||
def show
|
||||
if @account.subscription(api_subscription_url(@account.id)).valid?(params['hub.topic'], params['hub.verify_token'])
|
||||
render text: HTMLEntities.new.encode(params['hub.challenge']), status: 200
|
||||
render plain: HTMLEntities.new.encode(params['hub.challenge']), status: 200
|
||||
else
|
||||
render nothing: true, status: 404
|
||||
head 404
|
||||
end
|
||||
end
|
||||
|
||||
@ -15,9 +15,9 @@ class Api::SubscriptionsController < ApiController
|
||||
|
||||
if @account.subscription(api_subscription_url(@account.id)).verify(body, request.headers['HTTP_X_HUB_SIGNATURE'])
|
||||
ProcessFeedService.new.(body, @account)
|
||||
render nothing: true, status: 201
|
||||
head 201
|
||||
else
|
||||
render nothing: true, status: 202
|
||||
head 202
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user