conn no longer necessary

This commit is contained in:
byte[] 2019-12-05 17:57:17 -05:00
parent d5c438acdc
commit 19174a31ba

View file

@ -39,7 +39,7 @@ defmodule PhilomenaWeb.Api.Json.OembedController do
end end
defp oembed_image(nil, conn), do: oembed_error(conn) defp oembed_image(nil, conn), do: oembed_error(conn)
defp oembed_image(image, conn), do: json(conn, oembed_json(image, conn)) defp oembed_image(image, conn), do: json(conn, oembed_json(image))
defp oembed_error(conn) do defp oembed_error(conn) do
conn conn
@ -47,7 +47,7 @@ defmodule PhilomenaWeb.Api.Json.OembedController do
|> json(%{error: "couldn't find an image"}) |> json(%{error: "couldn't find an image"})
end end
defp oembed_json(image, conn) do defp oembed_json(image) do
%{ %{
version: "1.0", version: "1.0",
type: "photo", type: "photo",