This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
go-writeas
mirror of
https://github.com/writeas/go-writeas.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
9
Activity
Browse 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
5 years ago
parent
9f0a63ee86
commit
cbbd4ec209
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
post.go
+ 3
- 0
post.go
View File
@@ -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
Write
Preview
Loading…
Cancel
Save