Change form key because we're in artist context
[brackets.git] / main.go
diff --git a/main.go b/main.go
index 8ab8e7b..94fbd81 100644 (file)
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ func addArtistHandler(db *db.DB, c *spotify.Client) handler {
                }
 
                r.ParseForm()
-               artistId := r.PostForm.Get("artist_id")
+               artistId := r.PostForm.Get("id")
 
                if artistId == "" {
                        http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)