From: Roger Braun Date: Wed, 2 Aug 2017 10:42:12 +0000 (+0200) Subject: Try refresh all invalid subscriptions. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=571f07abe3f70694d10bbbb7a9386b362cd09795;p=akkoma Try refresh all invalid subscriptions. This is a temporary fix to prevent intermittent problems from cutting off subscriptions. --- diff --git a/lib/pleroma/web/websub/websub.ex b/lib/pleroma/web/websub/websub.ex index 17fc42cb5..6bbf13130 100644 --- a/lib/pleroma/web/websub/websub.ex +++ b/lib/pleroma/web/websub/websub.ex @@ -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)