Add discovery and subscription requests to websub.
This commit is contained in:
parent
1ea4325fec
commit
90da25505f
3 changed files with 123 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue