diff options
author | Mark Felder <feld@feld.me> | 2021-02-26 18:14:57 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-02-26 18:14:57 -0600 |
commit | d35b6254b4540394a134e026289a2c09bfe42ddd (patch) | |
tree | 35de83e70972fbeeff35bb73ae1f56b1177a4874 /test | |
parent | 26b620d67652b3b7733354c4492465978f53fafb (diff) | |
download | pleroma-d35b6254b4540394a134e026289a2c09bfe42ddd.tar.gz pleroma-d35b6254b4540394a134e026289a2c09bfe42ddd.zip |
Store the client application data in ActivityStreams format
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier_test.exs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier_test.exs b/test/pleroma/web/activity_pub/transmogrifier_test.exs index 33ccbe2a7..f6a8cbb6f 100644 --- a/test/pleroma/web/activity_pub/transmogrifier_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier_test.exs @@ -205,14 +205,17 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do {:ok, activity} = CommonAPI.post(user, %{ status: "#2hu :firefox:", - application: %{name: "TestClient", website: "https://pleroma.social"} + application: %{type: "Application", name: "TestClient", url: "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 + assert %{ + type: "Application", + name: "TestClient", + url: "https://pleroma.social" + } == activity.object.data["application"] {:ok, modified} = Transmogrifier.prepare_outgoing(activity.data) |