mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 09:18:18 +00:00
Additional validation so we don't get caught off guard with a nil response
if CommonAPI ever prevents us from injecting this data
This commit is contained in:
parent
3554a65f45
commit
fb2a8e7ccd
|
@ -208,6 +208,12 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
|||
application: %{name: "TestClient", website: "https://pleroma.social"}
|
||||
})
|
||||
|
||||
# Ensure injected application data made it into the activity
|
||||
# as we don't have a Token to derive it from, otherwise it will
|
||||
# be nil and the test will pass
|
||||
assert %{"application" => %{name: "TestClient", website: "https://pleroma.social"}} =
|
||||
activity.object.data
|
||||
|
||||
{:ok, modified} = Transmogrifier.prepare_outgoing(activity.data)
|
||||
|
||||
assert length(modified["object"]["tag"]) == 2
|
||||
|
|
Loading…
Reference in a new issue