feat(federation): detached accounts get local profile+password self-service; self-view flag (detach spec §4.4, §4.7)

This commit is contained in:
Jannis Braun
2026-07-02 18:54:37 +02:00
parent ea66ec5dbd
commit 7e1e32de69
6 changed files with 246 additions and 9 deletions
+6 -1
View File
@@ -54,6 +54,11 @@ export function sanitizeUser(row: typeof schema.users.$inferSelect, isSelf = fal
homeInstance: row.homeInstance ?? null,
homeUserId: row.homeUserId ?? null,
replicatedInstances,
...(isSelf ? { showActivity: row.showActivity !== 0 } : {}),
...(isSelf
? {
showActivity: row.showActivity !== 0,
federationHomeOrphaned: row.federationHomeOrphaned === 1,
}
: {}),
};
}