Fix setting of confirmed=true on successful confirmation

th-downstream
Eugen Rochko 8 years ago
parent bf7c9e826d
commit 02da8fdcbe

@ -6,6 +6,6 @@ class Admin::PubsubhubbubController < ApplicationController
layout 'public'
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

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

Loading…
Cancel
Save