From cbbd4ec209559f6a0863806264e32a3c87fd4004 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 8 Oct 2018 20:21:37 -0400 Subject: [PATCH] Pass along edit token on post update Fixes bug introduced when we moved `Token` into the func's parameters, out of PostParams. --- post.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post.go b/post.go index b023a43..f748c6e 100644 --- a/post.go +++ b/post.go @@ -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