diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-11-17 16:30:44 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-01-20 02:27:48 +0000 |
commit | 75dfa1f0b07806908b11735afab3ba0dd3149659 (patch) | |
tree | be48743e2b039fd0eb6a5b25df70b6a49e92bc7b /lib | |
parent | 21ac35fcc0a531914cc3f84ace89f6cf029cfa6c (diff) | |
download | pleroma-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.ex | 3 |
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 |