Strip status data from Flag (when federating or closing/resolving report)
This commit is contained in:
parent
b08b1d5d91
commit
8eff05d4c6
5 changed files with 119 additions and 35 deletions
|
|
@ -491,7 +491,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
|
||||
with flag_data <- make_flag_data(params, additional),
|
||||
{:ok, activity} <- insert(flag_data, local),
|
||||
:ok <- maybe_federate(activity) do
|
||||
{:ok, stripped_activity} <- strip_report_status_data(activity),
|
||||
:ok <- maybe_federate(stripped_activity) do
|
||||
Enum.each(User.all_superusers(), fn superuser ->
|
||||
superuser
|
||||
|> Pleroma.Emails.AdminEmail.report(actor, account, statuses, content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue