added config variables for default community logo and user photo

This commit is contained in:
2026-03-04 23:06:09 -07:00
parent 2b7225c269
commit 0d93e4f1f9
9 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func immediateIf(a jet.Arguments) reflect.Value {
// extractCommunityLogo extracts a community logo URL from a community.
func extractCommunityLogo(a jet.Arguments) reflect.Value {
rc := "/img/builtin/default-community.jpg"
rc := config.GlobalConfig.Site.DefaultCommunityLogo
comm := a.Get(0).Convert(reflect.TypeFor[*database.Community]()).Interface().(*database.Community)
ctxt := a.Get(1).Convert(reflect.TypeFor[AmContext]()).Interface().(AmContext)
ci, err := comm.ContactInfo(ctxt.Ctx())