From: William Pitcock Date: Sat, 17 Nov 2018 16:30:44 +0000 (+0000) Subject: mastodon api: get_visibility(): DMs never have a cc list. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=75dfa1f0b07806908b11735afab3ba0dd3149659;p=akkoma mastodon api: get_visibility(): DMs never have a cc list. --- 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