diff options
author | lain <lain@soykaf.club> | 2019-10-16 16:16:39 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-10-16 16:16:39 +0200 |
commit | 6e4f52f8a2e510273149acbaf629521d1b4aec2e (patch) | |
tree | 0f6210fe8dfe0b716f2fc9721df0d5a8f807294f /test/object_test.exs | |
parent | e3b4a3e96b2ffbc6d920155cd41687414045d4d6 (diff) | |
download | pleroma-6e4f52f8a2e510273149acbaf629521d1b4aec2e.tar.gz pleroma-6e4f52f8a2e510273149acbaf629521d1b4aec2e.zip |
Introduce new ingestion pipeline structure, implement internal Likes with it.
Diffstat (limited to 'test/object_test.exs')
-rw-r--r-- | test/object_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/object_test.exs b/test/object_test.exs index dd228c32f..353bc388d 100644 --- a/test/object_test.exs +++ b/test/object_test.exs @@ -182,7 +182,8 @@ defmodule Pleroma.ObjectTest do user = insert(:user) activity = Activity.get_create_by_object_ap_id(object.data["id"]) - {:ok, _activity, object} = CommonAPI.favorite(activity.id, user) + {:ok, activity} = CommonAPI.favorite(user, activity.id) + object = Object.get_by_ap_id(activity.data["object"]) assert object.data["like_count"] == 1 |