aboutsummaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2018-11-10 11:17:12 +0000
committerkaniini <nenolod@gmail.com>2018-11-10 11:17:12 +0000
commit99a8ef967e875d66002cf7ba1e6c8d6c392f6288 (patch)
treea4bcb8e5deb046f79e404b14372721761c41f76b /test/web
parentb4bd5e40e491c8b777c75ec4f096c0c466a6b4e2 (diff)
parent1d9fcbf2ba77030dd82b32b2666ddae59649661b (diff)
downloadpleroma-99a8ef967e875d66002cf7ba1e6c8d6c392f6288.tar.gz
Merge branch 'tests/prismo-url-map' into 'develop'
Test that prismo url-map transforms into a string See merge request pleroma/pleroma!414
Diffstat (limited to 'test/web')
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index 07ff1deeb..6e4820dbc 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -145,6 +145,14 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert "test" in data["object"]["tag"]
end
+ test "it works for incoming notices with url not being a string (prismo)" do
+ data = File.read!("test/fixtures/prismo-url-map.json") |> Poison.decode!()
+
+ {:ok, %Activity{data: data, local: false}} = Transmogrifier.handle_incoming(data)
+
+ assert data["object"]["url"] == "https://prismo.news/posts/83"
+ end
+
test "it works for incoming follow requests" do
user = insert(:user)