projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update install docs (#38)
[akkoma]
/
test
/
pleroma
/
web
/
media_proxy_test.exs
diff --git
a/test/pleroma/web/media_proxy_test.exs
b/test/pleroma/web/media_proxy_test.exs
index 7411d0a7a6bd0f708b3656f49f8aef065e7c3490..d97874f3ae2c43727533a943bb491e76ff91d262 100644
(file)
--- a/
test/pleroma/web/media_proxy_test.exs
+++ b/
test/pleroma/web/media_proxy_test.exs
@@
-11,8
+11,7
@@
defmodule Pleroma.Web.MediaProxyTest do
alias Pleroma.Web.MediaProxy
defp decode_result(encoded) do
alias Pleroma.Web.MediaProxy
defp decode_result(encoded) do
- [_, "proxy", sig, base64 | _] = URI.parse(encoded).path |> String.split("/")
- {:ok, decoded} = MediaProxy.decode_url(sig, base64)
+ {:ok, decoded} = MediaProxy.decode_url(encoded)
decoded
end
decoded
end
@@
-42,7
+41,7
@@
defmodule Pleroma.Web.MediaProxyTest do
assert String.starts_with?(
encoded,
assert String.starts_with?(
encoded,
- Config.get([:media_proxy, :base_url], Pleroma.Web.
base_
url())
+ Config.get([:media_proxy, :base_url], Pleroma.Web.
Endpoint.
url())
)
assert String.ends_with?(encoded, "/logo.png")
)
assert String.ends_with?(encoded, "/logo.png")