From 19174a31ba9b21944494958c5f8588f06af8dcbd Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 5 Dec 2019 17:57:17 -0500 Subject: [PATCH] conn no longer necessary --- lib/philomena_web/controllers/api/json/oembed_controller.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/controllers/api/json/oembed_controller.ex b/lib/philomena_web/controllers/api/json/oembed_controller.ex index ee3127fc..452e99eb 100644 --- a/lib/philomena_web/controllers/api/json/oembed_controller.ex +++ b/lib/philomena_web/controllers/api/json/oembed_controller.ex @@ -39,7 +39,7 @@ defmodule PhilomenaWeb.Api.Json.OembedController do end 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 conn @@ -47,7 +47,7 @@ defmodule PhilomenaWeb.Api.Json.OembedController do |> json(%{error: "couldn't find an image"}) end - defp oembed_json(image, conn) do + defp oembed_json(image) do %{ version: "1.0", type: "photo",