Don't return blocked users' activities in contexts.
[akkoma] / test / web / mastodon_api / mastodon_api_controller_test.exs
index 6569b8c455a1f4f34e70753465489f62070099f6..cf09bc4b8d94a11f938c2e77d851f51955405ebf 100644 (file)
@@ -50,9 +50,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
 
     conn = conn
     |> assign(:user, user)
-    |> post("/api/v1/statuses", %{"status" => "cofe"})
+    |> post("/api/v1/statuses", %{"status" => "cofe", "spoiler_text" => "2hu"})
 
-    assert %{"content" => "cofe", "id" => id} = json_response(conn, 200)
+    assert %{"content" => "cofe", "id" => id, "spoiler_text" => "2hu"} = json_response(conn, 200)
     assert Repo.get(Activity, id)
   end