memos/proto
johnnyjoygh 96cb65320b fix(instance): add needs_setup so admin-less instances aren't treated as fresh
The frontend keyed first-run setup off a null InstanceProfile.admin, but a
null admin only means "no admin-role user exists" — which also happens on a
populated instance that has lost all its admins. Such an instance was wrongly
redirected to signup, where the new account is created as a normal user (the
first-user promotion only triggers when there are zero users), leaving the
instance permanently admin-less.

Add an explicit InstanceProfile.needs_setup derived from user count == 0, and
switch the signup redirect and host tip to use it. admin stays for display only.
2026-06-21 22:14:15 +08:00
..
api/v1 fix(instance): add needs_setup so admin-less instances aren't treated as fresh 2026-06-21 22:14:15 +08:00
gen fix(instance): add needs_setup so admin-less instances aren't treated as fresh 2026-06-21 22:14:15 +08:00
store feat: add optional webhook signing secret (Standard Webhooks HMAC-SHA256) (#6013) 2026-06-09 22:45:01 +08:00
buf.gen.yaml fix: openapi generation (#5349) 2025-12-15 10:55:04 +08:00
buf.lock chore(backend): update Go toolchain and dependencies (#5730) 2026-03-16 21:07:52 +08:00
buf.yaml chore: update gitignore 2025-04-17 23:11:36 +08:00
openapi_embed.go feat: add OpenAPI-driven MCP support (#6026) 2026-06-09 09:16:50 +08:00
README.md chore: tweak readme 2024-02-23 08:25:54 +08:00

Guide

Prerequisites

Generate

buf generate

Format

buf format -w