commit: 27df2c0ce6c214f36db742af702fc239f80764a7
parent 5a3b81d92ef532769a11d4374424665f6d97a08f
Author: NEETzsche <neetzsche@tutanota.com>
Date: Mon, 27 Nov 2023 03:34:31 -0700
Fix #strip_report_status_data
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/changelog.d/anonymous-exception-else.fix b/changelog.d/anonymous-exception-else.fix
@@ -0,0 +1 @@
+Fix #strip_report_status_data
diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex
@@ -855,6 +855,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
Enum.map(reported_activities, fn
act when is_map(act) -> act["id"]
act when is_binary(act) -> act
+ _other -> nil
end)
new_data = put_in(activity.data, ["object"], [actor | stripped_activities])