mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 15:05:45 +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)
|
||||
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue