Fix #strip_report_status_data
Checklist
-
Adding a changelog: In the changelog.d
directory, create a file named<code>.<type>
.
It was erroring in the anonymous function on breastmilk.club when trying to close a report:
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in anonymous fn/1 in Pleroma.Web.ActivityPub.Utils.strip_report_status_data/1
(pleroma 3.7.1-202-g3cc88b37-akroma) lib/pleroma/web/activity_pub/utils.ex:829: anonymous fn(nil) in Pleroma.Web.ActivityPub.Utils.strip_report_status_data/1
(elixir 1.14.3) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(pleroma 3.7.1-202-g3cc88b37-akroma) lib/pleroma/web/activity_pub/utils.ex:829: Pleroma.Web.ActivityPub.Utils.strip_report_status_data/1
(pleroma 3.7.1-202-g3cc88b37-akroma) lib/pleroma/web/activity_pub/utils.ex:791: Pleroma.Web.ActivityPub.Utils.update_report_state/2
(pleroma 3.7.1-202-g3cc88b37-akroma) lib/pleroma/web/admin_api/controllers/report_controller.ex:51: anonymous fn/2 in Pleroma.Web.AdminAPI.ReportController.update/2
(elixir 1.14.3) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(pleroma 3.7.1-202-g3cc88b37-akroma) lib/pleroma/web/admin_api/controllers/report_controller.ex:50: Pleroma.Web.AdminAPI.ReportController.update/2
(pleroma 3.7.1-202-g3cc88b37-akroma) lib/pleroma/web/admin_api/controllers/report_controller.ex:5: Pleroma.Web.AdminAPI.ReportController.action/2
This PR fixes that bug. Apparently it ran into a case other than the two listed. This fixes that. I know that breastmilk.club runs on Akkoma, but that's a fork of Pleroma, so this PR is likely pertinent here.