aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/common_api.ex
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-03-14 19:38:46 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-03-14 19:44:08 +0000
commit5c7b774f09d86414e6a8ef6494ccd2e6a76c1396 (patch)
treec1e1015c7adfdf4bb83a294c36d0d6281dfcbbcf /lib/pleroma/web/common_api/common_api.ex
parent64b0120d678b106f33d5c903749fcac5ed5a1ed7 (diff)
downloadpleroma-5c7b774f09d86414e6a8ef6494ccd2e6a76c1396.tar.gz
reports: unify sending e-mail for both remote and local reports
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r--lib/pleroma/web/common_api/common_api.ex6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex
index ead4928b5..edbcd3397 100644
--- a/lib/pleroma/web/common_api/common_api.ex
+++ b/lib/pleroma/web/common_api/common_api.ex
@@ -287,12 +287,6 @@ defmodule Pleroma.Web.CommonAPI do
content: content_html,
forward: data["forward"] || false
}) do
- Enum.each(User.all_superusers(), fn superuser ->
- superuser
- |> Pleroma.AdminEmail.report(user, account, statuses, content_html)
- |> Pleroma.Mailer.deliver_async()
- end)
-
{:ok, activity}
else
{:error, err} -> {:error, err}