Fix my incorrect search test fix
authorrinpatch <rinpatch@sdf.org>
Thu, 18 Apr 2019 11:37:57 +0000 (14:37 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 18 Apr 2019 11:37:57 +0000 (14:37 +0300)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 245887ff8ec97da77245e66b10af547e82956af3..786af2088d202f59bb94e03bf19427f44d3791a3 100644 (file)
@@ -1879,7 +1879,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
     capture_log(fn ->
       conn =
         conn
-        |> get("/api/v1/search", %{"q" => Object.normalize(activity).id})
+        |> get("/api/v1/search", %{"q" => Object.normalize(activity).data["id"]})
 
       assert results = json_response(conn, 200)