From: rinpatch Date: Mon, 7 Sep 2020 11:38:15 +0000 (+0000) Subject: Merge branch 'fix/admin-controller-atom-leak' into 'develop' X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4b76d7ce67333fd9e09ce39102c3d5818309009c;p=akkoma Merge branch 'fix/admin-controller-atom-leak' into 'develop' Fix atom leak in AdminAPIController See merge request pleroma/secteam/pleroma!6 --- diff --git a/lib/pleroma/web/admin_api/controllers/admin_api_controller.ex b/lib/pleroma/web/admin_api/controllers/admin_api_controller.ex index aa2af1ab5..f5e4d49f9 100644 --- a/lib/pleroma/web/admin_api/controllers/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/controllers/admin_api_controller.ex @@ -379,8 +379,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do filters |> String.split(",") |> Enum.filter(&Enum.member?(@filters, &1)) - |> Enum.map(&String.to_atom/1) - |> Map.new(&{&1, true}) + |> Map.new(&{String.to_existing_atom(&1), true}) end def right_add_multiple(%{assigns: %{user: admin}} = conn, %{