Merge branch 'add-apache-cache-config' into 'develop'
[akkoma] / test / web / mastodon_api / mastodon_api_controller_test.exs
index 3dfbc8669fb270a1fa34a6b08d3cd0c9fa4090a0..b52c2b80570536b19b6658ebf385ba11b5642756 100644 (file)
@@ -1744,6 +1744,18 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
                }
              }
 
+      # works with private posts
+      {:ok, activity} =
+        CommonAPI.post(user, %{"status" => "http://example.com/ogp", "visibility" => "direct"})
+
+      response_two =
+        conn
+        |> assign(:user, user)
+        |> get("/api/v1/statuses/#{activity.id}/card")
+        |> json_response(200)
+
+      assert response_two == response
+
       Pleroma.Config.put([:rich_media, :enabled], false)
     end
   end