common api: add support for forwarding reports
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Mar 2019 19:29:33 +0000 (19:29 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Mar 2019 19:29:33 +0000 (19:29 +0000)
lib/pleroma/web/common_api/common_api.ex

index de0759fb09279995aa4f0c051586409cb8a716d9..ead4928b5fd0c1781c78c97d26473cfd6f1d9af2 100644 (file)
@@ -284,7 +284,8 @@ defmodule Pleroma.Web.CommonAPI do
              actor: user,
              account: account,
              statuses: statuses,
-             content: content_html
+             content: content_html,
+             forward: data["forward"] || false
            }) do
       Enum.each(User.all_superusers(), fn superuser ->
         superuser