Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
writeas
/
go-writeas
espelhamento de
https://github.com/writeas/go-writeas.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
9
Atividade
Ver código fonte
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 anos atrás
pai
9f0a63ee86
commit
cbbd4ec209
1 arquivos alterados
com
3 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+3
-0
post.go
+ 3
- 0
post.go
Ver arquivo
@@ -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
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar