Save cws in the activitypub data.

This commit is contained in:
Roger Braun 2017-10-31 17:30:46 +01:00
commit 4cbf17dac6
4 changed files with 15 additions and 9 deletions

View file

@ -94,11 +94,12 @@ defmodule Pleroma.Web.CommonAPI.Utils do
end)
end
def make_note_data(actor, to, context, content_html, attachments, inReplyTo, tags) do
def make_note_data(actor, to, context, content_html, attachments, inReplyTo, tags, cw \\ nil) do
object = %{
"type" => "Note",
"to" => to,
"content" => content_html,
"summary" => cw,
"context" => context,
"attachment" => attachments,
"actor" => actor,