diff options
author | rinpatch <rinpatch@sdf.org> | 2019-07-09 20:00:37 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-07-09 20:00:37 +0000 |
commit | 81f1017b84bbe1a493aaf6f43687af2f2546b6a1 (patch) | |
tree | bb2d77d97f46f51c7d3b3e719fe29faac41432af /test/web/twitter_api/twitter_api_controller_test.exs | |
parent | 2bb945cb70751bc8e72c036040130bb54c32f391 (diff) | |
parent | 8a41d34673532c03cf99a2334399b9436e245f1b (diff) | |
download | pleroma-81f1017b84bbe1a493aaf6f43687af2f2546b6a1.tar.gz |
Merge branch '878-activity-object-decoupling-in-tests' into 'develop'
[#878] Refactored assumptions on embedded object presence in tests
Closes #878
See merge request pleroma/pleroma!1390
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/twitter_api_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index 3760b44b6..7ec0e101d 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -929,7 +929,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do test "with credentials", %{conn: conn, user: current_user} do note_activity = insert(:note_activity) - object = Object.get_by_ap_id(note_activity.data["object"]["id"]) + object = Object.normalize(note_activity) ActivityPub.like(current_user, object) conn = |