aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 16:30:44 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-01-20 02:27:48 +0000
commit75dfa1f0b07806908b11735afab3ba0dd3149659 (patch)
treebe48743e2b039fd0eb6a5b25df70b6a49e92bc7b /lib
parent21ac35fcc0a531914cc3f84ace89f6cf029cfa6c (diff)
downloadpleroma-75dfa1f0b07806908b11735afab3ba0dd3149659.tar.gz
mastodon api: get_visibility(): DMs never have a cc list.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 7f5a52ea3..feabf54c6 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -231,6 +231,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
Enum.any?(to, &String.contains?(&1, "/followers")) ->
"private"
+ length(cc) > 0 ->
+ "private"
+
true ->
"direct"
end