     }))
   end
 
-  def category(conn, params) do
+  def fetch_category(conn, params) do
     Discovery.category(standard_params(conn, %{
       id_or_slug: params["slug"],
       images:     false,

  end

  def trending(conn, params) do
    case category(conn, params) do
      nil -> send_resp(conn, 404, "")
      category ->
        results = fetch_trending(conn, category)

  alias Ello.Core.Discovery

  def recent(conn, params) do
    case fetch_category(conn, params) do
      nil -> send_resp(conn, 404, "")
      category ->
        stream = fetch_stream(conn, [category])
