diff options
author | kaniini <nenolod@gmail.com> | 2019-02-23 03:59:23 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-02-23 03:59:23 +0000 |
commit | 101c20f8d95299767c19498d627ff404f0a7b130 (patch) | |
tree | a6681dc1ce495d83fca0f9956b3d60be63e54842 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | ab2d2dfa7bc01ce1714d03c32419f357ea6384a2 (diff) | |
parent | 9e0686efa61940fe78736c3e2669acb7233d8ada (diff) | |
download | pleroma-101c20f8d95299767c19498d627ff404f0a7b130.tar.gz pleroma-101c20f8d95299767c19498d627ff404f0a7b130.zip |
Merge branch 'card-handling' into 'develop'
Private card handling
Closes #652
See merge request pleroma/pleroma!854
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 12 |
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 |