fix(panel): 服主在控制台看得到 LuckPerms 入口,归属判定统一走 /me/servers

This commit is contained in:
Lemon-miaow committed 2026-09-24 15:23:20 +08:00
1 parent c7db7d4126
commit 248fa5d100
10 files changed
+108 -28

No files matched your search

+3 -1
View File
@@ -1582,7 +1582,9 @@ async function handleServerRoute(ctx: SessionContext): Promise<boolean> {
}
if (is("GET", ctx) && ctx.parts[4] === "status") {
sendJSON(ctx.res, 200, projectServer(serverInfo, ctx.account));
// The real status projection (api.ServerInfo) carries no owned/claimable.
const { owned: _o, claimable: _c, ...status } = projectServer(serverInfo, ctx.account);
sendJSON(ctx.res, 200, status);
return true;
}
if (is("GET", ctx) && ctx.parts[4] === "console") {