Correct active state websub name.
[akkoma] / lib / pleroma / web / websub / websub.ex
index 5468758fd36e41326d1b51db8db86d8a918d45e4..2276ddeec822cebad1179f56334f4b5475541d83 100644 (file)
@@ -211,7 +211,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 == "active"
+      where: sub.valid_until < ^cut_off and sub.state == "accepted"
 
     subs = Repo.all(query)