X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fobject_test.exs;h=353bc388d24f7d915713ca1b2ef9db5548c4838e;hb=081e8206ab75e336a76b621508b3999170159ec6;hp=3d64fdb49d82d9e494db00524f5791c57c7e0cf5;hpb=e32d099a3a0e701cf2a75775664483f2d72c2dec;p=akkoma diff --git a/test/object_test.exs b/test/object_test.exs index 3d64fdb49..353bc388d 100644 --- a/test/object_test.exs +++ b/test/object_test.exs @@ -1,5 +1,5 @@ # Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors +# Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.ObjectTest do @@ -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