MastodonAPI: Post with visibility settings
This commit is contained in:
parent
539340d914
commit
d4b08dd838
3 changed files with 33 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue