mastodon api: get_visibility(): DMs never have a cc list.
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 16:30:44 +0000 (16:30 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 20 Jan 2019 02:27:48 +0000 (02:27 +0000)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 7f5a52ea3e094339a1a32919b0ee96cef7e531fc..feabf54c6cd3ee88c740842ee49467db08dfeb8d 100644 (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