Correctly stitch mastodon -> ostatus replies.

This commit is contained in:
lain 2018-02-23 15:00:41 +01:00
commit aa79d64e0d
10 changed files with 1235 additions and 8 deletions

View file

@ -288,6 +288,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
assert object == object_again
end
test "it correctly stitches up conversations between ostatus and ap" do
last = "https://mstdn.io/users/mayuutann/statuses/99568293732299394"
{:ok, object} = ActivityPub.fetch_object_from_id(last)
object = Object.get_by_ap_id(object.data["inReplyTo"])
assert object
end
end
describe "following / unfollowing" do

View file

@ -10,11 +10,6 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
alias Pleroma.Web.CommonAPI
describe "handle_incoming" do
test "it correctly connects AP and non-AP statuses" do
last = "https://mstdn.io/users/mayuutann/statuses/99568293732299394"
end
test "it ignores an incoming notice if we already have it" do
activity = insert(:note_activity)