Activity: get_all_by_object_ap_id/1 → get_all_create_by_object_ap_id/1
This commit is contained in:
parent
4ad5a0abb9
commit
f8ab1b7427
4 changed files with 7 additions and 7 deletions
|
|
@ -16,7 +16,7 @@ defmodule Pleroma.ActivityTest do
|
|||
|
||||
test "returns activities by it's objects AP ids" do
|
||||
activity = insert(:note_activity)
|
||||
[found_activity] = Activity.get_all_by_object_ap_id(activity.data["object"]["id"])
|
||||
[found_activity] = Activity.get_all_create_by_object_ap_id(activity.data["object"]["id"])
|
||||
|
||||
assert activity == found_activity
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue