From 571f07abe3f70694d10bbbb7a9386b362cd09795 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 2 Aug 2017 12:42:12 +0200 Subject: [PATCH] Try refresh all invalid subscriptions. This is a temporary fix to prevent intermittent problems from cutting off subscriptions. --- lib/pleroma/web/websub/websub.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2