[#2497] Added support for enforcing output format for media proxy preview, used for avatar_static & header_static (AccountView).

This commit is contained in:
Ivan Tashkinov 2020-09-03 20:13:29 +03:00
commit 60c925380d
4 changed files with 20 additions and 11 deletions

View file

@ -15,6 +15,7 @@ defmodule Pleroma.Helpers.UriHelper do
uri
|> Map.put(:query, URI.encode_query(updated_params))
|> URI.to_string()
|> String.replace_suffix("?", "")
end
def maybe_add_base("/" <> uri, base), do: Path.join([base, uri])