owpengram-server/internal
Astra 8850554500 admin: fix server settings env editor crashing on empty template
ReadEnvGroups returned a nil slice (out := groups[:0]) whenever no group
ended up with fields, which marshals to JSON null instead of []. The
admin UI's EnvSection calls groups.reduce()/iterates unconditionally, so
that null crashed the Server Settings page.

Also switch the source of the panel structure from .env.example to .env
once .env exists, falling back to .env.example only pre-setup: .env
already carries the same group headers and comments after any save
(WriteEnvValues always rewrites it from .env.example's exact text), so
it's the more current source of what's actually configured.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 19:01:18 +01:00
..
admin usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
adminapi usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
app botfather: fix two remaining call sites after branding rebase 2026-09-14 12:12:13 +01:00
botapi botapi: getChatMemberCount, getChatMember, and a fuller getChat 2026-09-14 12:00:03 +01:00
branding merged with fixes 2026-09-09 02:49:30 +03:00
compat merged with fixes 2026-09-09 02:49:30 +03:00
config merged with fixes 2026-09-09 02:49:30 +03:00
domain rpc: return PASSWORD_MISSING for channel transfer without 2FA 2026-09-14 12:05:28 +01:00
hoststats fixes for storage managament 2026-09-03 08:33:06 +03:00
identity improvements for first-time setup 2026-09-08 17:56:26 +03:00
links Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877 2026-08-03 23:29:20 +03:00
loadharness merged with fixes 2026-09-09 02:49:30 +03:00
loadtest merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
mtprotoedge merged with fixes 2026-09-09 02:49:30 +03:00
observability merged with fixes 2026-09-09 02:49:30 +03:00
otpdelivery smtp: add Date and Message-ID headers to outgoing mail 2026-09-14 12:05:28 +01:00
postresponse fix: sync MTProto startup and egress fixes 2026-07-13 19:05:41 +08:00
procctl admin: fix server settings env editor crashing on empty template 2026-09-14 19:01:18 +01:00
readmodelcache merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
rpc deps: bump github.com/iamxvbaba/td to v1.3.2 2026-09-14 12:09:36 +01:00
rpcresult merged with fixes 2026-09-09 02:49:30 +03:00
seed fix for gif and emojies categories 2026-08-24 22:42:40 +03:00
sfu translated all logs to english 2026-07-25 07:31:27 +03:00
store usernames: report reserved names as taken in the check paths too 2026-09-14 12:05:28 +01:00
telegramloginhttp merged with fixes 2026-09-09 02:49:30 +03:00
transport merged with fixes 2026-09-09 02:49:30 +03:00
turnsrv translated all logs to english 2026-07-25 07:31:27 +03:00
updatecdn merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
web merged with fixes 2026-09-09 02:49:30 +03:00
webauthn merged with fixes 2026-09-09 02:49:30 +03:00