MCPcopy
hub / github.com/writefreely/writefreely / AvatarURL

Method AvatarURL

collections.go:361–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359}
360
361func (c *Collection) AvatarURL() string {
362 fl := string(unicode.ToLower([]rune(c.DisplayTitle())[0]))
363 if !isAvatarChar(fl) {
364 return ""
365 }
366 return c.hostName + "/img/avatars/" + fl + ".png"
367}
368
369func (c *Collection) FederatedAPIBase() string {
370 return c.hostName + "/"

Callers 1

PersonObjectMethod · 0.95

Calls 1

DisplayTitleMethod · 0.95

Tested by

no test coverage detected