diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-03-01 17:51:15 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-03-01 17:51:15 +0000 |
commit | d03ee11b72b8e90ffff5b44b077e567485bc95e0 (patch) | |
tree | 22e00367ab565778413f67d9cb4f94c5230673ca /test | |
parent | 9fb8da429360ddb9433f4c740126e2d858b1f141 (diff) | |
parent | b1e1db82bc2c076f2a7858ec63017c10dda1966b (diff) | |
download | pleroma-d03ee11b72b8e90ffff5b44b077e567485bc95e0.tar.gz pleroma-d03ee11b72b8e90ffff5b44b077e567485bc95e0.zip |
Merge branch 'application-to-generator' into 'develop'
ActvitityStreams application field should be called "generator"
See merge request pleroma/pleroma!3352
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier_test.exs b/test/pleroma/web/activity_pub/transmogrifier_test.exs index f6a8cbb6f..211e535a5 100644 --- a/test/pleroma/web/activity_pub/transmogrifier_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier_test.exs @@ -205,7 +205,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do {:ok, activity} = CommonAPI.post(user, %{ status: "#2hu :firefox:", - application: %{type: "Application", name: "TestClient", url: "https://pleroma.social"} + generator: %{type: "Application", name: "TestClient", url: "https://pleroma.social"} }) # Ensure injected application data made it into the activity @@ -215,7 +215,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do type: "Application", name: "TestClient", url: "https://pleroma.social" - } == activity.object.data["application"] + } == activity.object.data["generator"] {:ok, modified} = Transmogrifier.prepare_outgoing(activity.data) @@ -226,7 +226,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do assert is_nil(modified["object"]["announcements"]) assert is_nil(modified["object"]["announcement_count"]) assert is_nil(modified["object"]["context_id"]) - assert is_nil(modified["object"]["application"]) + assert is_nil(modified["object"]["generator"]) end test "it strips internal fields of article" do |