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

Method IsPoster

internal/database/issue.go:228–230  ·  view source on GitHub ↗

IsPoster returns true if given user by ID is the poster.

(uid int64)

Source from the content-addressed store, hash-verified

226
227// IsPoster returns true if given user by ID is the poster.
228func (issue *Issue) IsPoster(uid int64) bool {
229 return issue.PosterID == uid
230}
231
232func (issue *Issue) hasLabel(e Engine, labelID int64) bool {
233 return hasIssueLabel(e, issue.ID, labelID)

Callers 4

viewIssueFunction · 0.80
UpdateIssueTitleFunction · 0.80
NewCommentFunction · 0.80
EditIssueFunction · 0.80

Implementers 1

mailerIssueinternal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected