(app *App)
| 131 | } |
| 132 | |
| 133 | func getLandingBody(app *App) (*instanceContent, error) { |
| 134 | c, err := app.db.GetDynamicContent("landing-body") |
| 135 | if err != nil { |
| 136 | return nil, err |
| 137 | } |
| 138 | if c == nil { |
| 139 | c = &instanceContent{ |
| 140 | ID: "landing-body", |
| 141 | Type: "section", |
| 142 | Content: defaultLandingBody(app.cfg), |
| 143 | Updated: defaultPageUpdatedTime, |
| 144 | } |
| 145 | } |
| 146 | return c, nil |
| 147 | } |
| 148 | |
| 149 | func defaultLandingBanner(cfg *config.Config) string { |
| 150 | if cfg.App.Federation { |
no test coverage detected