Skip to content

Commit

Permalink
Fix instagram subscription method
Browse files Browse the repository at this point in the history
  • Loading branch information
troutowicz committed Sep 8, 2015
1 parent 28bbe0c commit d50f472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export function handleSubscription(request, reply) {
const io = request.server.app.io;
const client = request.server.app.client;

if (request.method === 'get' && request.query['hub.verify_token'] === verifyToken) {
return reply(request.query['hub.challenge']);
if (request.method === 'get' && request.query.hub.mode === 'subscribe' && request.query.hub.verify_token === verifyToken) {
return reply(request.query.hub.challenge);
}

// instagram provides 20 most recent
Expand Down

0 comments on commit d50f472

Please sign in to comment.