MCPcopy
hub / github.com/apache/answer / CommentURL

Function CommentURL

pkg/display/url.go:55–60  ·  view source on GitHub ↗

CommentURL get comment url

(permalink int, siteUrl, questionID, title, answerID, commentID string)

Source from the content-addressed store, hash-verified

53
54// CommentURL get comment url
55func CommentURL(permalink int, siteUrl, questionID, title, answerID, commentID string) string {
56 if len(answerID) > 0 {
57 return AnswerURL(permalink, siteUrl, questionID, answerID, title) + "?commentId=" + commentID
58 }
59 return QuestionURL(permalink, siteUrl, questionID, title) + "?commentId=" + commentID
60}
61
62// UserURL get user url
63func UserURL(siteUrl, username string) string {

Callers 2

NewCommentTemplateMethod · 0.92

Calls 2

AnswerURLFunction · 0.85
QuestionURLFunction · 0.85

Tested by

no test coverage detected