mastodon api: get_visibility(): DMs never have a cc list.

This commit is contained in:
William Pitcock 2018-11-17 16:30:44 +00:00
parent 21ac35fcc0
commit 75dfa1f0b0

View file

@ -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