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

Method CustomAvatarPath

internal/database/repo.go:312–314  ·  view source on GitHub ↗

CustomAvatarPath returns repository custom avatar file path.

()

Source from the content-addressed store, hash-verified

310
311// CustomAvatarPath returns repository custom avatar file path.
312func (r *Repository) CustomAvatarPath() string {
313 return filepath.Join(conf.Picture.RepositoryAvatarUploadPath, com.ToStr(r.ID))
314}
315
316// RelAvatarLink returns relative avatar link to the site domain,
317// which includes app sub-url as prefix.

Callers 4

RelAvatarLinkMethod · 0.95
UploadAvatarMethod · 0.95
DeleteAvatarMethod · 0.95
UpdateAvatarSettingFunction · 0.80

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected