projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a4135
)
Try refresh all invalid subscriptions.
author
Roger Braun
<roger@rogerbraun.net>
Wed, 2 Aug 2017 10:42:12 +0000
(12:42 +0200)
committer
Roger 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
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/websub/websub.ex
b/lib/pleroma/web/websub/websub.ex
index 17fc42cb53065460f429b79211881c73026adc99..6bbf13130dfb79e91fcdcfa0697620334798bf0a 100644
(file)
--- 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)