]> cat aescling's git repositories - mastodon.git/commitdiff
Only PuSH-resubscribe to OStatus accounts (#4583)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 12 Aug 2017 00:54:54 +0000 (02:54 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Aug 2017 00:54:54 +0000 (02:54 +0200)
app/workers/scheduler/subscriptions_scheduler.rb

index 7bfd002f474883b88a38dcddbe16cbe07c246e10..5ddfaed1887cd90adcb4f7ed67457732a3d4ee11 100644 (file)
@@ -8,13 +8,12 @@ class Scheduler::SubscriptionsScheduler
 
   def perform
     logger.info 'Queueing PuSH re-subscriptions'
-
     Pubsubhubbub::SubscribeWorker.push_bulk(expiring_accounts.pluck(:id))
   end
 
   private
 
   def expiring_accounts
-    Account.expiring(1.day.from_now).partitioned
+    Account.where(protocol: :ostatus).expiring(1.day.from_now).partitioned
   end
 end