Fix #strip_report_status_data #665

Open
NEETzsche wants to merge 1 commit 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
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
9f6a557ce1
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.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u neetzsche/fix-anonymous-exception:NEETzsche-neetzsche/fix-anonymous-exception
git checkout NEETzsche-neetzsche/fix-anonymous-exception
Sign in to join this conversation.
No description provided.