From 7719f511aa7da98cd214493137c4a7fcf1fe509b Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Sun, 16 Apr 2017 15:04:59 +0900 Subject: [PATCH] Fix godoc to Reblog and Unreblog --- status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/status.go b/status.go index 67884c6..2b180b2 100644 --- a/status.go +++ b/status.go @@ -105,7 +105,7 @@ func (c *Client) GetFavouritedBy(id int64) ([]*Account, error) { return accounts, nil } -// Reblog is reblog the toot of id. +// Reblog is reblog the toot of id and return status of reblog. func (c *Client) Reblog(id int64) (*Status, error) { var status Status err := c.doAPI(http.MethodPost, fmt.Sprintf("/api/v1/statuses/%d/reblog", id), nil, &status) @@ -115,7 +115,7 @@ func (c *Client) Reblog(id int64) (*Status, error) { return &status, nil } -// Unreblog is unreblog the toot of id. +// Unreblog is unreblog the toot of id and return status of the original toot. func (c *Client) Unreblog(id int64) (*Status, error) { var status Status err := c.doAPI(http.MethodPost, fmt.Sprintf("/api/v1/statuses/%d/unreblog", id), nil, &status)