Move custom URI encoding functions to Pleroma.Utils.URIEncoding

This commit is contained in:
Phantasm 2025-10-20 22:10:28 +02:00
commit f290b15987
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8
8 changed files with 146 additions and 140 deletions

View file

@ -17,7 +17,7 @@ defmodule Pleroma.Tesla.Middleware.EncodeUrl do
@impl Tesla.Middleware
def call(%Tesla.Env{url: url} = env, next, _) do
url = Pleroma.HTTP.encode_url(url)
url = Pleroma.Utils.URIEncoding.encode_url(url)
env = %{env | url: url}