From 625056fa47aea01162a8a49490e4ad69e0708b15 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 18 Oct 2016 12:23:38 +0200 Subject: [PATCH] Only run mastodon:push:clear on accounts that are still subscribed to --- lib/tasks/mastodon.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index aa07c07385..78def7b515 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -13,7 +13,7 @@ namespace :mastodon do task clear: :environment do include RoutingHelper - Account.remote.without_followers.find_each do |a| + Account.remote.without_followers.where.not(subscription_expires_at: nil).find_each do |a| Rails.logger.debug "PuSH unsubscribing from #{a.acct}" begin