diff options
-rw-r--r-- | lib/pleroma/web/matrix_controller.ex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/pleroma/web/matrix_controller.ex b/lib/pleroma/web/matrix_controller.ex index f499d8938..c7584046b 100644 --- a/lib/pleroma/web/matrix_controller.ex +++ b/lib/pleroma/web/matrix_controller.ex @@ -335,8 +335,11 @@ defmodule Pleroma.Web.MatrixController do def download(conn, params) do {:ok, url} = params["file"] |> Base.decode64() - conn - |> redirect(external: url) + # This is stupid + with {:ok, %{status: 200} = env} = Pleroma.HTTP.get(url) do + conn + |> send_resp(200, env.body) + end end # Not documented, guessing what's expected here |