forked from AkkomaGang/akkoma
Merge branch 'fix/admin-controller-atom-leak' into 'develop'
Fix atom leak in AdminAPIController See merge request pleroma/secteam/pleroma!6
This commit is contained in:
parent
9b85592b8b
commit
4b76d7ce67
1 changed files with 1 additions and 2 deletions
|
@ -379,8 +379,7 @@ defp maybe_parse_filters(filters) do
|
||||||
filters
|
filters
|
||||||
|> String.split(",")
|
|> String.split(",")
|
||||||
|> Enum.filter(&Enum.member?(@filters, &1))
|
|> Enum.filter(&Enum.member?(@filters, &1))
|
||||||
|> Enum.map(&String.to_atom/1)
|
|> Map.new(&{String.to_existing_atom(&1), true})
|
||||||
|> Map.new(&{&1, true})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def right_add_multiple(%{assigns: %{user: admin}} = conn, %{
|
def right_add_multiple(%{assigns: %{user: admin}} = conn, %{
|
||||||
|
|
Loading…
Reference in a new issue