Remove "support" for path encoding quirks

Currently there isn't any known quirk that would be needed
and this is just dead code that does nothing.
This commit is contained in:
Phantasm 2025-10-20 23:36:38 +02:00
commit 07ba3bb829
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -22,9 +22,7 @@ defmodule Pleroma.Utils.URIEncoding do
true ->
URI.parse(url)
|> then(fn parsed ->
path =
encode_path(parsed.path, bypass_decode)
|> maybe_apply_path_encoding_quirks()
path = encode_path(parsed.path, bypass_decode)
query = encode_query(parsed.query)
@ -76,8 +74,6 @@ defmodule Pleroma.Utils.URIEncoding do
|> do_encode_query()
end
defp maybe_apply_path_encoding_quirks(path), do: path
# Always uses www_form encoding
defp do_encode_query(enumerable) do
Enum.map_join(enumerable, "&", &maybe_apply_query_quirk(&1))