logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 571f07abe3f70694d10bbbb7a9386b362cd09795
parent: e4a4135c1d3f7d5783e78934f8b4198cc2435dbe
Author: Roger Braun <roger@rogerbraun.net>
Date:   Wed,  2 Aug 2017 12:42:12 +0200

Try refresh all invalid subscriptions.

This is a temporary fix to prevent intermittent problems from cutting
off subscriptions.

Diffstat:

Mlib/pleroma/web/websub/websub.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)