Add discovery and subscription requests to websub.
[akkoma] / test / support / factory.ex
index d037be4a622a5fba90d6b8076ddbe1d5a86eca35..ac276567a0f6a1902514d393affd772049f3970a 100644 (file)
@@ -76,4 +76,14 @@ defmodule Pleroma.Factory do
       state: "requested"
     }
   end
+
+  def websub_client_subscription_factory do
+    %Pleroma.Web.Websub.WebsubClientSubscription{
+      topic: "http://example.org",
+      secret: "here's a secret",
+      valid_until: nil,
+      state: "requested",
+      subscribers: []
+    }
+  end
 end