also suppress link previews from posts marked #nsfw
This commit is contained in:
parent
0da1233e8e
commit
dc08159538
3 changed files with 26 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue