HEADER v3, primary аккаунты и подтверждения

This commit is contained in:
AidarKC
2026-11-27 12:29:24 +03:00
parent f9e7c4ef94
commit ae430e84c7
89 changed files with 1201 additions and 1596 deletions
+2 -2
View File
@@ -586,10 +586,10 @@ Channel items contain `ownerLogin`, `slug`, `displayName`, `avatarAr`, `ownerBlo
Channel/message responses expose three counters:
- `likesCount` — all active likes;
- `primaryLikesCount` — likes from users whose current `account_role=primary`;
- `primaryLikesCount` — likes from accounts whose canonical signed HEADER V3 declares `accountType=1`;
- `shiningLikesCount` — likes from users who are currently both `primary` and `shining`.
Changing `account_role` or `shine` does not alter the raw reaction. The two qualified counters are recalculated from `reactions_state`; therefore old likes automatically enter or leave qualified counters when the actor's current status changes.
The public UI shows only `primaryLikesCount`; details retain all three categories. Alternative accounts can still like. The `account_role` parameter cannot change voting rights. Changes in `shine` or in the canonical HEADER projection recalculate qualified counters from `reactions_state`, without changing raw reactions.
## `SearchChannels` — публичный поиск каналов (v32)