Remove duplicate MarkCommentReplyAsRead
This commit is contained in:
parent
2d99520d52
commit
e5d44a3781
@ -127,7 +127,7 @@ func (c *Client) ListCommentReports(ctx context.Context, d types.ListCommentRepo
|
|||||||
return ar, nil
|
return ar, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) MarkCommentReplyRead(ctx context.Context, d types.MarkCommentReplyAsRead) (*types.CommentResponse, error) {
|
func (c *Client) MarkCommentReplyAsRead(ctx context.Context, d types.MarkCommentReplyAsRead) (*types.CommentResponse, error) {
|
||||||
ar := &types.CommentResponse{}
|
ar := &types.CommentResponse{}
|
||||||
res, err := c.req(ctx, http.MethodPost, "/comment/mark_as_read", d, &ar)
|
res, err := c.req(ctx, http.MethodPost, "/comment/mark_as_read", d, &ar)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
15
person.go
15
person.go
@ -204,21 +204,6 @@ func (c *Client) MarkAllAsRead(ctx context.Context, d types.MarkAllAsRead) (*typ
|
|||||||
return ar, nil
|
return ar, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) MarkCommentReplyAsRead(ctx context.Context, d types.MarkCommentReplyAsRead) (*types.CommentResponse, error) {
|
|
||||||
ar := &types.CommentResponse{}
|
|
||||||
res, err := c.req(ctx, http.MethodPost, "/user/mark_as_read", d, &ar)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
err = resError(res, ar.LemmyResponse)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ar, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Client) MarkPersonMentionAsRead(ctx context.Context, d types.MarkPersonMentionAsRead) (*types.PersonMentionResponse, error) {
|
func (c *Client) MarkPersonMentionAsRead(ctx context.Context, d types.MarkPersonMentionAsRead) (*types.PersonMentionResponse, error) {
|
||||||
ar := &types.PersonMentionResponse{}
|
ar := &types.PersonMentionResponse{}
|
||||||
res, err := c.req(ctx, http.MethodPost, "/user/mention/mark_as_read", d, &ar)
|
res, err := c.req(ctx, http.MethodPost, "/user/mention/mark_as_read", d, &ar)
|
||||||
|
Loading…
Reference in New Issue
Block a user