Browse Source

Merge branch 'fix/admin-controller-atom-leak' into 'develop'

Fix atom leak in AdminAPIController

See merge request pleroma/secteam/pleroma!6
tags/v2.1.1^2
rinpatch 3 years ago
parent
commit
4b76d7ce67
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      lib/pleroma/web/admin_api/controllers/admin_api_controller.ex

+ 1
- 2
lib/pleroma/web/admin_api/controllers/admin_api_controller.ex View File

@@ -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, %{


Loading…
Cancel
Save