Add callback to websub subscription.
This commit is contained in:
parent
1c00eb4a90
commit
39dc74f967
2 changed files with 9 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
|
|||
"hub.mode": "subscription",
|
||||
"hub.topic": Pleroma.Web.OStatus.feed_path(user),
|
||||
"hub.secret": "a random secret",
|
||||
"hub.lease_seconds": 100
|
||||
"hub.lease_seconds": "100"
|
||||
}
|
||||
|
||||
conn = conn
|
||||
|
|
@ -25,6 +25,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
|
|||
assert subscription.topic == Pleroma.Web.OStatus.feed_path(user)
|
||||
assert subscription.state == "requested"
|
||||
assert subscription.secret == "a random secret"
|
||||
assert subscription.callback == "http://example.org/sub"
|
||||
assert subscription.valid_until == NaiveDateTime.add(subscription.inserted_at, 100)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue