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
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@ def get_visibility(object) do
Enum.any?(to, &String.contains?(&1, "/followers")) ->
"private"
length(cc) > 0 ->
"private"
true ->
"direct"
end