Try refresh all invalid subscriptions.
authorRoger Braun <roger@rogerbraun.net>
Wed, 2 Aug 2017 10:42:12 +0000 (12:42 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 2 Aug 2017 10:42:12 +0000 (12:42 +0200)
This is a temporary fix to prevent intermittent problems from cutting
off subscriptions.

lib/pleroma/web/websub/websub.ex

index 17fc42cb53065460f429b79211881c73026adc99..6bbf13130dfb79e91fcdcfa0697620334798bf0a 100644 (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)