0
0

Fix setting of confirmed=true on successful confirmation

This commit is contained in:
Eugen Rochko 2016-11-28 19:24:49 +01:00
parent 50638174c8
commit 3ba6531611
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,6 @@ class Admin::PubsubhubbubController < ApplicationController
layout 'public' layout 'public'
def index def index
@subscriptions = Subscription.includes(:account).paginate(page: params[:page], per_page: 40) @subscriptions = Subscription.order('id desc').includes(:account).paginate(page: params[:page], per_page: 40)
end end
end end

View File

@ -10,6 +10,7 @@ class Pubsubhubbub::ConfirmationWorker
subscription.secret = secret subscription.secret = secret
subscription.lease_seconds = lease_seconds subscription.lease_seconds = lease_seconds
subscription.confirmed = true
response = HTTP.headers(user_agent: 'Mastodon/PubSubHubbub') response = HTTP.headers(user_agent: 'Mastodon/PubSubHubbub')
.timeout(:per_operation, write: 20, connect: 20, read: 50) .timeout(:per_operation, write: 20, connect: 20, read: 50)