Remove tag links for now, they break some regular links.
[akkoma] / lib / pleroma / web / websub / websub.ex
index 932bf186267dcea50d773139dedd5d4a3e6aa4c2..6bbf13130dfb79e91fcdcfa0697620334798bf0a 100644 (file)
@@ -212,12 +212,12 @@ 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)
 
-    Enum.map(subs, fn (sub) ->
-      request_subscription(sub)
+    Enum.each(subs, fn (sub) ->
+      Pleroma.Web.Federator.enqueue(:request_subscription, sub)
     end)
   end
 end