point provider url at the correct page

This commit is contained in:
byte[] 2019-12-05 17:56:20 -05:00
parent 0f21011049
commit d5c438acdc

View file

@ -55,7 +55,7 @@ defmodule PhilomenaWeb.Api.Json.OembedController do
author_url: image.source_url,
author_name: artist_tags(image.tags),
provider_name: "Derpibooru",
provider_url: Routes.image_url(conn, :show, image),
provider_url: PhilomenaWeb.Endpoint.url(),
cache_age: 7200,
derpibooru_id: image.id,
derpibooru_score: image.score,