Parcourir la source

Pass along edit token on post update

Fixes bug introduced when we moved `Token` into the func's parameters,
out of PostParams.
pull/9/head
Matt Baer il y a 5 ans
Parent
révision
cbbd4ec209
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. +3
    -0
      post.go

+ 3
- 0
post.go Voir le fichier

@@ -145,8 +145,11 @@ func (c *Client) updatePost(collection, identifier, token string, sp *PostParams
/*
if collection != "" {
endpoint = "/collections/" + collection + endpoint
} else {
sp.Token = token
}
*/
sp.Token = token
env, err := c.put(endpoint, sp, p)
if err != nil {
return nil, err


Chargement…
Annuler
Enregistrer