Skip to content
Snippets Groups Projects
Commit 571f07ab authored by lain's avatar lain
Browse files

Try refresh all invalid subscriptions.

This is a temporary fix to prevent intermittent problems from cutting
off subscriptions.
parent e4a4135c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment