Correct active state websub name.

This commit is contained in:
Roger Braun 2017-05-10 18:54:43 +02:00
commit 153995f832
2 changed files with 3 additions and 3 deletions

View 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)