summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-04-07 16:40:03 +0200
committerlain <lain@soykaf.club>2018-04-07 16:40:45 +0200
commit70bcdf32bdf98c02d9f44c07cbcf74d4c59ed299 (patch)
tree9095036ae6cb0ef8c468e47bf3091aa5facbc996 /test
parenta9203ab363fdedcf69c3f299063345e26b836a05 (diff)
downloadpleroma-70bcdf32bdf98c02d9f44c07cbcf74d4c59ed299.tar.gz
pleroma-70bcdf32bdf98c02d9f44c07cbcf74d4c59ed299.zip
Only search in public data for now.
This should be the data the user is allowed to see later, but this will stop accidental private message leaks.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs7
1 files changed, 7 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 2c9cdd194..5d39c25c6 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -564,6 +564,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
user_three = insert(:user, %{nickname: "shp@heldscal.la", name: "I love 2hu"})
{:ok, activity} = CommonAPI.post(user, %{"status" => "This is about 2hu"})
+
+ {:ok, _activity} =
+ CommonAPI.post(user, %{
+ "status" => "This is about 2hu, but private",
+ "visibility" => "private"
+ })
+
{:ok, _} = CommonAPI.post(user_two, %{"status" => "This isn't"})
conn =