     post = Repo.one(query)
 
     conn
+    |> assign_post_canonical_url(post)
     |> assign(:twitter_shareable, true)
     |> render("show.html", post: post)
   end


  defp extracted_slug(<<slug::size(10)-binary, _rest::binary>>), do: {:ok, slug}
  defp extracted_slug(_), do: :error
end

    |> Repo.preload([:channel])
    |> Repo.preload([:developer])

    conn
    |> assign_post_canonical_url(post)
    |> assign(:twitter_shareable, true)
    |> render("show.#{format}", post: post)
  end
