X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fostatus%2Fostatus_test.exs;h=ee2b79ffa6d8566783689fbf49255a7007fe4f81;hb=540dfb4617aaab400d0aeafa47d41544c00a2b83;hp=8dd3c3b54c65d77a8cf50a772ad92c1636191246;hpb=678f572144bfd861793c0b72061b04cdb9b7c991;p=akkoma 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)