Handle mastodon conversation ids.
This commit is contained in:
parent
485cc0bc6a
commit
1b1f861bad
3 changed files with 41 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue