docs: document S2S profile sync relay and write-protection guard

This commit is contained in:
Jannis Braun
2026-04-07 14:01:44 +02:00
parent a7cd6a1bf3
commit a023c85cad
2 changed files with 24 additions and 7 deletions
+2
View File
@@ -28,6 +28,8 @@ GET /users/:id → { user }
GET /users/:id/mutuals ?homeUserId= → { mutualFriends[], mutualSpaces[] }
```
**Write protection:** If the authenticated user is a replicated user (`homeInstance` is set), the following fields are rejected with 403: `displayName`, `avatar`, `banner`, `accentColor`, `avatarColor`, `bio`. These fields are managed by the home instance via S2S relay.
## Spaces (`routes/spaces.ts`) — auth required
```
GET /spaces → { spaces[] }