diff options
author | Ivan Tashkinov <ivant.business@gmail.com> | 2019-07-08 19:53:02 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivant.business@gmail.com> | 2019-07-08 19:53:02 +0300 |
commit | daff85a985c165c73fda3fcd20a3f46c76d36e6d (patch) | |
tree | 22edb1ef324ee2b89f276fb038b415d2c30c7b05 /test/web/twitter_api/twitter_api_controller_test.exs | |
parent | 3589b30ddc9d0c23ca6f00264cff05e53be1b270 (diff) | |
download | pleroma-daff85a985c165c73fda3fcd20a3f46c76d36e6d.tar.gz pleroma-daff85a985c165c73fda3fcd20a3f46c76d36e6d.zip |
[#878] Refactored assumptions on embedded object presence in tests. Adjusted note factory to not embed object into activity.
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 8187ffd0e..8be289789 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -892,7 +892,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 = |