Public Access
feat(account): push public profile flag and sections to Core
This commit is contained in:
1 parent
d924c09953
commit
d842d9e865
16 files changed
+234
-33
No files matched your search
@@ -397,8 +397,11 @@ sequenceDiagram
|
||||
Core keeps its own copy of the Steam ID and of the block. After a verified Steam link (also for the account that
|
||||
loses a typed-in ID), an unlink, a block and an unblock, Auth sends the user's state after the commit
|
||||
(`AccountStatePublisher`), also when the display name, the public profile or "show me in owner lists" changes; the nightly
|
||||
cleanup sends every user. The state carries `listed` (active, public profile, opt-in and a display name: `ListedUser`),
|
||||
which Core uses for its owner lists. The call runs on the task executor, so neither the answer nor a database
|
||||
cleanup sends every user. A change of the profile tiles sends it too. The state carries `listed` (active, public profile, opt-in and a display
|
||||
name: `ListedUser`), which Core uses for its owner lists, `publicProfile` (active, public profile and a display name:
|
||||
`PublicUser`) and `profileSections` (the profile parts the user shows, by the names of the profile ticket:
|
||||
`ProfileSections`), which Core uses to let others follow the user and to leave out in the follower note what the profile
|
||||
hides (#27). The call runs on the task executor, so neither the answer nor a database
|
||||
connection waits for Core; a failed call is tried again after 10 s, 1 min and 5 min (in memory), then it only warns.
|
||||
|
||||
```mermaid
|
||||
@@ -406,8 +409,8 @@ sequenceDiagram
|
||||
participant A as Auth
|
||||
participant C as Core
|
||||
A->>A: link / unlink / block / unblock / name change (commit)
|
||||
A->>C: POST /internal/accounts/states {userId, steamId, displayName, blocked, roleChangedAt, listed}
|
||||
C->>C: blocked_user, listed_user, account_role_change, Steam ID in user_steam_sync, display name in account_name
|
||||
A->>C: POST /internal/accounts/states {userId, steamId, displayName, blocked, roleChangedAt, listed, publicProfile, profileSections}
|
||||
C->>C: blocked_user, listed_user, public_user (+ sections), account_role_change, Steam ID in user_steam_sync, display name in account_name
|
||||
Note over A,C: nightly 04:15
|
||||
A->>C: PUT /internal/accounts/states (every user)
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user