summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-09-04 11:03:51 +0200
committerRoger Braun <roger@rogerbraun.net>2017-09-04 11:03:51 +0200
commit1b1f861bad9a3a0065f9879edd9e5f11766393d7 (patch)
tree95f53808e3d17eda69209406ac3cef46f7666a57 /test/web
parent485cc0bc6accb5bccbc9f1a68a66de0955855580 (diff)
downloadpleroma-1b1f861bad9a3a0065f9879edd9e5f11766393d7.tar.gz
pleroma-1b1f861bad9a3a0065f9879edd9e5f11766393d7.zip
Handle mastodon conversation ids.
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)