Add Websub verification.

This commit is contained in:
Roger Braun 2017-04-21 03:59:11 +02:00
commit 424e0e7779
5 changed files with 79 additions and 0 deletions

View file

@ -64,4 +64,14 @@ defmodule Pleroma.Factory do
data: data
}
end
def websub_subscription_factory do
%Pleroma.Web.Websub.WebsubServerSubscription{
topic: "http://example.org",
callback: "http://example/org/callback",
secret: "here's a secret",
valid_until: NaiveDateTime.add(NaiveDateTime.utc_now, 100),
state: "requested"
}
end
end