also suppress link previews from posts marked #nsfw

This commit is contained in:
William Pitcock 2019-05-17 20:42:51 +00:00
commit dc08159538
3 changed files with 26 additions and 3 deletions

View file

@ -223,7 +223,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
in_reply_to,
tags,
cw \\ nil,
cc \\ []
cc \\ [],
sensitive \\ false
) do
object = %{
"type" => "Note",
@ -231,6 +232,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
"cc" => cc,
"content" => content_html,
"summary" => cw,
"sensitive" => sensitive,
"context" => context,
"attachment" => attachments,
"actor" => actor,