MCPcopy
hub / github.com/gotify/server / withResolvedImage

Function withResolvedImage

api/application.go:443–451  ·  view source on GitHub ↗
(app *model.Application)

Source from the content-addressed store, hash-verified

441}
442
443func withResolvedImage(app *model.Application) *model.Application {
444 if app.Image == "" {
445 // This must stay in sync with the isDefaultImage check in ui/src/application/Applications.tsx.
446 app.Image = "static/defaultapp.png"
447 } else {
448 app.Image = "image/" + app.Image
449 }
450 return app
451}
452
453func (a *ApplicationAPI) applicationExists(token string) bool {
454 app, _ := a.DB.GetApplicationByToken(token)

Callers 5

CreateApplicationMethod · 0.85
GetApplicationsMethod · 0.85
UpdateApplicationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…