mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 11:34:15 +00:00
Try refresh all invalid subscriptions.
This is a temporary fix to prevent intermittent problems from cutting off subscriptions.
This commit is contained in:
parent
e4a4135c1d
commit
571f07abe3
|
@ -212,7 +212,7 @@ defmodule Pleroma.Web.Websub do
|
||||||
cut_off = NaiveDateTime.add(NaiveDateTime.utc_now, delta)
|
cut_off = NaiveDateTime.add(NaiveDateTime.utc_now, delta)
|
||||||
|
|
||||||
query = from sub in WebsubClientSubscription,
|
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)
|
subs = Repo.all(query)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue