mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
conn no longer necessary
This commit is contained in:
parent
d5c438acdc
commit
19174a31ba
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue