Fix #strip_report_status_data #665

Closed
NEETzsche wants to merge 1 commit from NEETzsche/akkoma:neetzsche/fix-anonymous-exception into develop
Showing only changes of commit 9f6a557ce1 - Show all commits

Fix #strip_report_status_data
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending

NEETzsche 2023-11-27 03:48:25 -07:00

View file

@ -811,6 +811,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])