diff options
author | lain <lain@soykaf.club> | 2018-02-17 14:11:20 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-17 14:11:20 +0100 |
commit | 05ba6ca1b8a792dfaa8e636a964a09b766afb4d6 (patch) | |
tree | d5e036a132efc87620b8013391555348e4e9383e /lib/pleroma/web/common_api | |
parent | 5a371892a031ecc7359ff45d1119ae41a20f46dd (diff) | |
download | pleroma-05ba6ca1b8a792dfaa8e636a964a09b766afb4d6.tar.gz |
Do some transmogrifying for the output.
Diffstat (limited to 'lib/pleroma/web/common_api')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index f3060bd89..bc1bb1892 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -61,7 +61,7 @@ defmodule Pleroma.Web.CommonAPI do cw <- data["spoiler_text"], object <- make_note_data(user.ap_id, to, context, content_html, attachments, inReplyTo, tags, cw), object <- Map.put(object, "emoji", Formatter.get_emoji(status) |> Enum.reduce(%{}, fn({name, file}, acc) -> Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url}#{file}") end)) do - res = ActivityPub.create(%{to: to, actor: user, context: context, object: object}) + res = ActivityPub.create(%{to: to, actor: user, context: context, object: object, additional: %{"cc" => to}}) User.increase_note_count(user) res end |