about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/admin/pubsubhubbub_controller.rb2
-rw-r--r--app/workers/pubsubhubbub/confirmation_worker.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/admin/pubsubhubbub_controller.rb b/app/controllers/admin/pubsubhubbub_controller.rb
index fae05bf9d..7e6bc75ea 100644
--- a/app/controllers/admin/pubsubhubbub_controller.rb
+++ b/app/controllers/admin/pubsubhubbub_controller.rb
@@ -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
diff --git a/app/workers/pubsubhubbub/confirmation_worker.rb b/app/workers/pubsubhubbub/confirmation_worker.rb
index 24e1185d4..b852970a9 100644
--- a/app/workers/pubsubhubbub/confirmation_worker.rb
+++ b/app/workers/pubsubhubbub/confirmation_worker.rb
@@ -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)