feat(federation): detached accounts get local profile+password self-service; self-view flag (detach spec §4.4, §4.7)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user