本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
writeas
/
go-writeas
镜像来自
https://github.com/writeas/go-writeas.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
9
活動
瀏覽代碼
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 年之前
父節點
9f0a63ee86
當前提交
cbbd4ec209
共有
1 個檔案被更改
,包括
3 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
post.go
+ 3
- 0
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
Write
Preview
Loading…
取消
儲存