about summary refs log tree commit diff
path: root/app/controllers/api/subscriptions_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-20 02:43:20 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-20 02:43:20 +0200
commit608a2bfffc9186e71d52e0916b54b0f513994db2 (patch)
tree3a2d900162a1fc62a0221c180404771d5c787bcc /app/controllers/api/subscriptions_controller.rb
parenta86f21cf90814ef0dd6e013202fb93ee83beca86 (diff)
Upgrade to PubSubHubbub 0.4 (removing verify_token)
Diffstat (limited to 'app/controllers/api/subscriptions_controller.rb')
-rw-r--r--app/controllers/api/subscriptions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/subscriptions_controller.rb b/app/controllers/api/subscriptions_controller.rb
index 84b88765a..04d99b828 100644
--- a/app/controllers/api/subscriptions_controller.rb
+++ b/app/controllers/api/subscriptions_controller.rb
@@ -3,7 +3,7 @@ class Api::SubscriptionsController < ApiController
   respond_to :txt
 
   def show
-    if @account.subscription(api_subscription_url(@account.id)).valid?(params['hub.topic'], params['hub.verify_token'])
+    if @account.subscription(api_subscription_url(@account.id)).valid?(params['hub.topic'])
       @account.update(subscription_expires_at: Time.now + (params['hub.lease_seconds'].to_i).seconds)
       render plain: HTMLEntities.new.encode(params['hub.challenge']), status: 200
     else