MastodonAPI: Post with visibility settings

This commit is contained in:
lain 2018-02-18 14:45:08 +01:00
commit d4b08dd838
3 changed files with 33 additions and 14 deletions

View file

@ -116,8 +116,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
cond do
public in to -> "public"
public in cc -> "unlisted"
[] == cc -> "direct"
true -> "private"
Enum.any?(to, &(String.contains?(&1, "/followers"))) -> "private"
true -> "direct"
end
end