Fix #strip_report_status_data #665

Open
NEETzsche wants to merge 1 commits from NEETzsche/akkoma:neetzsche/fix-anonymous-exception into develop
First-time contributor

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. breastmilk.club runs on Akkoma.

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. `breastmilk.club` runs on Akkoma.
NEETzsche added 1 commit 2023-11-27 10:51:32 +00:00
ci/woodpecker/pr/build-amd64 Pipeline is pending Details
ci/woodpecker/pr/build-arm64 Pipeline is pending Details
ci/woodpecker/pr/docs Pipeline is pending Details
ci/woodpecker/pr/lint Pipeline is pending Details
ci/woodpecker/pr/test Pipeline is pending Details
9f6a557ce1
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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
Sign in to join this conversation.
No description provided.