MCPcopy Create free account
hub / github.com/gogs/gogs / GetAttachmentsByCommentID

Function GetAttachmentsByCommentID

internal/database/attachment.go:145–147  ·  view source on GitHub ↗

GetAttachmentsByCommentID returns all attachments of a comment.

(commentID int64)

Source from the content-addressed store, hash-verified

143
144// GetAttachmentsByCommentID returns all attachments of a comment.
145func GetAttachmentsByCommentID(commentID int64) ([]*Attachment, error) {
146 return getAttachmentsByCommentID(x, commentID)
147}
148
149func getAttachmentsByReleaseID(e Engine, releaseID int64) ([]*Attachment, error) {
150 attachments := make([]*Attachment, 0, 10)

Callers 1

Calls 1

Tested by

no test coverage detected