- refute Repo.get(Activity, note.id)
- refute Object.get_by_ap_id(note.data["object"]["id"])
- assert Repo.get(Activity, second_note.id)
+ incoming =
+ File.read!("test/fixtures/delete.xml")
+ |> String.replace(
+ "tag:mastodon.sdf.org,2017-06-10:objectId=310513:objectType=Status",
+ note.data["object"]["id"]
+ )
+
+ {:ok, [delete]} = OStatus.handle_incoming(incoming)
+
+ refute Activity.get_by_id(note.id)
+ refute Activity.get_by_id(like.id)
+ assert Object.get_by_ap_id(note.data["object"]["id"]).data["type"] == "Tombstone"
+ assert Activity.get_by_id(second_note.id)