     json conn, comments
   end
 
-  def show(conn, %{"id" => id}) do
-    [author, permlink] = String.split(id, "/")
-    comment = Glasnost.Repo.get_by(conn.assigns.comment_schema, author: author, permlink: permlink)
+  def show(conn, %{"author" => a, "permlink" => p}) do
+    comment = Glasnost.Repo.get_by(
+      conn.assigns.comment_schema, author: a, permlink: p
+    )
+      |> Map.from_struct
+      |> Map.drop([:__meta__])
     if comment do
       json conn, comment
     else

    end
  end

  def choose_schema(conn, _params) do
    schema = case String.slice(conn.request_path, 1, 5) do
      "golos" -> Glasnost.Golos.Comment
      "steem" -> Glasnost.Steem.Comment
    end

defmodule Glasnost.Web.CommentController do
  use Glasnost.Web, :controller
  alias Glasnost.Repo
  import Ecto.Query
  @posts_per_page 24

  plug :select_schema

  def index(conn, params) do
    q = from c in conn.assigns.comment_schema
