             type: "danger",
             user_name: current_user.name}
       end
-      Pan.Endpoint.broadcast "mailboxes:" <> Integer.to_string(current_user.id), "notification", notification
+
+      Pan.Endpoint.broadcast "mailboxes:" <> Integer.to_string(current_user.id),
+                             "notification", notification
     end
 
     conn



  def factory(conn, _params) do
    podcasts = Repo.all(from p in Podcast, order_by: [asc: :updated_at],
                                           where: p.update_paused == true)
               |> Repo.preload([:feeds, :owner])
    render(conn, "factory.html", podcasts: podcasts)
  end


  plug :scrub_params, "podcast" when action in [:create, :update]

  def orphans(conn, _params) do
    podcast_ids = from(a in "categories_podcasts", group_by: a.podcast_id,
                                                   select: a.podcast_id)
                  |> Repo.all

    podcasts = from(p in Podcast, where: not p.id in ^podcast_ids)
               |> Repo.all

    render(conn, "orphans.html", podcasts: podcasts)
  end
