Try refresh all invalid subscriptions.

This is a temporary fix to prevent intermittent problems from cutting
off subscriptions.
This commit is contained in:
Roger Braun 2017-08-02 12:42:12 +02:00
parent e4a4135c1d
commit 571f07abe3

View File

@ -212,7 +212,7 @@ defmodule Pleroma.Web.Websub do
cut_off = NaiveDateTime.add(NaiveDateTime.utc_now, delta)
query = from sub in WebsubClientSubscription,
where: sub.valid_until < ^cut_off and sub.state == "accepted"
where: sub.valid_until < ^cut_off
subs = Repo.all(query)