MCPcopy Create free account
hub / github.com/Agelessbaby/BloomBlog / CommentList

Method CommentList

cmd/comment/command/comment_list.go:18–28  ·  view source on GitHub ↗
(req *comment.BloomblogCommentListRequest, fromID int64)

Source from the content-addressed store, hash-verified

16}
17
18func (s *CommentListService) CommentList(req *comment.BloomblogCommentListRequest, fromID int64) ([]*comment.Comment, error) {
19 Comments, err := db.GetPostComments(s.ctx, req.PostId)
20 if err != nil {
21 return nil, err
22 }
23 comments, err := pack.Comments(s.ctx, Comments, fromID)
24 if err != nil {
25 return nil, err
26 }
27 return comments, nil
28}

Callers

nothing calls this directly

Calls 2

GetPostCommentsFunction · 0.92
CommentsFunction · 0.92

Tested by

no test coverage detected