Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
writeas
/
go-writeas
réplica de
https://github.com/writeas/go-writeas.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
9
Actividad
Explorar el Código
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
hace 5 años
padre
9f0a63ee86
commit
cbbd4ec209
Se han
modificado 1 ficheros
con
3 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+3
-0
post.go
+ 3
- 0
post.go
Ver fichero
@@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar