credo lint

This commit is contained in:
Phantasm 2025-10-10 22:41:24 +02:00
commit f36851acbd
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8
2 changed files with 7 additions and 5 deletions

View file

@ -101,10 +101,11 @@ defmodule Pleroma.Web.MediaProxy do
end
# The URL coming into MediaProxy from the outside might have wrong %-encoding
# (like older Pleroma versions)
# (like older Pleroma versions).
# This would cause an inconsistency with the encoded URL here and the requested
# URL fixed with Pleroma.Tesla.Middleware.EncodeUrl.
# End result is a failing HEAD request in Pleroma.Web.MediaProxy.MediaProxyController.handle_preview/2
# End result is a failing HEAD request in
# Pleroma.Web.MediaProxy.MediaProxyController.handle_preview/2
def encode_url(url) do
url = HTTP.encode_url(url)
{base64, sig64} = base64_sig64(url)