summaryrefslogtreecommitdiff
path: root/test/web/ostatus/incoming_documents/delete_handling_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-04-02 16:10:38 +0200
committerlain <lain@soykaf.club>2019-04-02 16:10:38 +0200
commit39bcf93007a5a52ba374099d6b04692361e7fa9b (patch)
tree358becb7f089c62d9f2a2634ca766ee7e7bad3f3 /test/web/ostatus/incoming_documents/delete_handling_test.exs
parentfd07745d1b18e2a1eeb88a99eaa9d5e728d1aa71 (diff)
parent180b87257cae481d4d9ffc9f03a06268ad8df569 (diff)
downloadpleroma-39bcf93007a5a52ba374099d6b04692361e7fa9b.tar.gz
pleroma-39bcf93007a5a52ba374099d6b04692361e7fa9b.zip
Merge remote-tracking branch 'origin/develop' into fix-slow-relationships
Diffstat (limited to 'test/web/ostatus/incoming_documents/delete_handling_test.exs')
-rw-r--r--test/web/ostatus/incoming_documents/delete_handling_test.exs7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/web/ostatus/incoming_documents/delete_handling_test.exs b/test/web/ostatus/incoming_documents/delete_handling_test.exs
index 412d894fd..ca6e61339 100644
--- a/test/web/ostatus/incoming_documents/delete_handling_test.exs
+++ b/test/web/ostatus/incoming_documents/delete_handling_test.exs
@@ -6,7 +6,6 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
alias Pleroma.Activity
alias Pleroma.Object
- alias Pleroma.Repo
alias Pleroma.Web.OStatus
setup do
@@ -32,10 +31,10 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
{:ok, [delete]} = OStatus.handle_incoming(incoming)
- refute Repo.get(Activity, note.id)
- refute Repo.get(Activity, like.id)
+ 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 Repo.get(Activity, second_note.id)
+ assert Activity.get_by_id(second_note.id)
assert Object.get_by_ap_id(second_note.data["object"]["id"])
assert delete.data["type"] == "Delete"