forked from AkkomaGang/akkoma
Make tests use it
This commit is contained in:
parent
e97b34f65d
commit
eaaa20e0f1
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@ defmodule Pleroma.Web.MediaProxyTest do
|
||||||
alias Pleroma.Web.MediaProxy
|
alias Pleroma.Web.MediaProxy
|
||||||
|
|
||||||
defp decode_result(encoded) do
|
defp decode_result(encoded) do
|
||||||
[_, "proxy", sig, base64 | _] = URI.parse(encoded).path |> String.split("/")
|
{:ok, decoded} = MediaProxy.decode_url(encoded)
|
||||||
{:ok, decoded} = MediaProxy.decode_url(sig, base64)
|
|
||||||
decoded
|
decoded
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue