mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-18 21:03:27 +00:00
Only run mastodon:push:clear on accounts that are still subscribed to
This commit is contained in:
parent
2e0a38d07c
commit
6f7c9774c7
|
@ -13,7 +13,7 @@ namespace :mastodon do
|
||||||
task clear: :environment do
|
task clear: :environment do
|
||||||
include RoutingHelper
|
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}"
|
Rails.logger.debug "PuSH unsubscribing from #{a.acct}"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in a new issue