Edit comments

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-27 18:49:30 -04:00
parent a14cb3a3c8
commit 73945e9aae
11 changed files with 45 additions and 46 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ type CommentService struct {
client *Client
}
// Submit submits a comment as a reply to a post, comment, or message.
// Submit a comment as a reply to a post, comment, or message.
// parentID is the full ID of the thing being replied to.
func (s *CommentService) Submit(ctx context.Context, parentID string, text string) (*Comment, *Response, error) {
path := "api/comment"
@@ -42,7 +42,7 @@ func (s *CommentService) Submit(ctx context.Context, parentID string, text strin
return root, resp, nil
}
// Edit edits a comment.
// Edit a comment.
func (s *CommentService) Edit(ctx context.Context, id string, text string) (*Comment, *Response, error) {
path := "api/editusertext"