diff --git a/lib/philomena_web/controllers/api/json/search_controller.ex b/lib/philomena_web/controllers/api/json/search_controller.ex index 12c44fe9..66d998c3 100644 --- a/lib/philomena_web/controllers/api/json/search_controller.ex +++ b/lib/philomena_web/controllers/api/json/search_controller.ex @@ -21,6 +21,7 @@ defmodule PhilomenaWeb.Api.Json.SearchController do conn |> json(%{ images: Enum.map(images, &ImageJson.as_json(conn, &1)), + total: images.total_entries, interactions: interactions })