aboutsummaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-02-26 15:29:43 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-02-26 15:29:43 +0300
commitfd46edb473441fcf75492da4fcd30836d3382a0f (patch)
treee8ea89d49178721f11b7f81cfae341393fba067b /test/web/mastodon_api
parente82b70eb530293c3dfe8597c4100320fba96e479 (diff)
parent03afee3fd11116d7deef256bd2b0de22526ff5b5 (diff)
downloadpleroma-fd46edb473441fcf75492da4fcd30836d3382a0f.tar.gz
Merge remote-tracking branch 'remotes/origin/develop' into customizable_auth
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 3dfbc8669..b52c2b805 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -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