diff --git a/lib/philomena_web/controllers/api/json/search/reverse_controller.ex b/lib/philomena_web/controllers/api/json/search/reverse_controller.ex index 1b7a6011..13095c2e 100644 --- a/lib/philomena_web/controllers/api/json/search/reverse_controller.ex +++ b/lib/philomena_web/controllers/api/json/search/reverse_controller.ex @@ -27,6 +27,10 @@ defmodule PhilomenaWeb.Api.Json.Search.ReverseController do conn |> put_view(PhilomenaWeb.Api.Json.ImageView) - |> render("index.json", images: images, total: length(images), interactions: interactions) + |> render("index.json", + images: images, + total: images.total_entries, + interactions: interactions + ) end end