summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
Diffstat (limited to 'test/web')
-rw-r--r--test/web/ostatus/ostatus_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs
index 8dd3c3b54..ee2b79ffa 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -182,6 +182,13 @@ defmodule Pleroma.Web.OStatusTest do
refute favorited_activity.local
end
+ test "handle conversation references" do
+ incoming = File.read!("test/fixtures/mastodon_conversation.xml")
+ {:ok, [activity]} = OStatus.handle_incoming(incoming)
+
+ assert activity.data["context"] == "tag:mastodon.social,2017-08-28:objectId=7876885:objectType=Conversation"
+ end
+
test "handle incoming favorites with locally available object - GS, websub" do
note_activity = insert(:note_activity)