Add discovery and subscription requests to websub.

This commit is contained in:
Roger Braun 2017-04-27 09:46:45 +02:00
commit 90da25505f
3 changed files with 123 additions and 6 deletions

View 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