Merge branch 'feature/dm-sanity' into 'develop'

DM sanitization

See merge request pleroma/pleroma!458
This commit is contained in:
lambda 2019-01-21 12:35:10 +00:00
commit 69454c8345
8 changed files with 186 additions and 4 deletions

View 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