URI.encode_query needs an enum, add test for this case
This commit is contained in:
parent
80db6f1328
commit
99a1c0890a
2 changed files with 21 additions and 1 deletions
|
|
@ -241,7 +241,8 @@ defmodule Pleroma.Upload do
|
|||
path =
|
||||
HTTP.encode_url(path, encode_opts) <>
|
||||
if Pleroma.Config.get([__MODULE__, :link_name], false) do
|
||||
"?name=#{URI.encode_query(name)}"
|
||||
enum = %{name: name}
|
||||
"?#{URI.encode_query(enum)}"
|
||||
else
|
||||
""
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue