   end
 
   def random(conn, _) do
-    query = from post in Post,
-      order_by: fragment("random()"),
-      limit: 1,
-      preload: [:channel, :developer]
+    query =
+      from(
+        post in Post,
+        order_by: fragment("random()"),
+        limit: 1,
+        preload: [:channel, :developer]
+      )
 
     post = Repo.one(query)
 

    case extracted_slug(conn.params["titled_slug"]) do
      {:ok, slug} ->
        assign(conn, :slug, slug)
      :error ->
        conn
        |> put_status(404)

  defp extracted_slug(_), do: :error

  defp assign_post_canonical_url(conn, post) do
    canonical_post =
      :tilex
      |> Application.get_env(:canonical_domain)
      |> URI.merge(post_path(conn, :show, post))
      |> URI.to_string()

    conn
    |> assign(:canonical_url, canonical_post)
