diff options
author | lain <lain@soykaf.club> | 2018-02-15 19:59:03 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-15 19:59:35 +0100 |
commit | ae266043787ca4b9bcbe5162f12598286a44cae2 (patch) | |
tree | a59b886ec3c0a042cd9bd91ffb5478d8b59c59e3 /lib/pleroma/web/common_api/common_api.ex | |
parent | 38b61fddfef6548f6c5999b9dc2b992a0db1a5d8 (diff) | |
download | pleroma-ae266043787ca4b9bcbe5162f12598286a44cae2.tar.gz |
ActivityPub: Refactor create function.
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-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 d3a9f7b85..f3060bd89 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, user, context, object) + res = ActivityPub.create(%{to: to, actor: user, context: context, object: object}) User.increase_note_count(user) res end |