Add reactions, reliable push & session checks

Implements message reactions and reaction packs (domain models, services, admin HTTP API, media processing via ImageSharp and limits) and adds reliable push delivery (ChatPushNotification, ChatPushDispatcher, ChatPushWorker, improved ChatNotificationService). Enhances message reading (ReadChat API, unread counts, concurrency-safe receipts) and tightens session security (access-token session validation in JWT, hub filter, SessionAuthorization). Improves SignalR behavior (session groups, reaction/channel events, hub/error mappings). Adds EF migrations, many controller fixes (Forbid handling, password API), tests (Govor.Server.Tests), docs, CI and tooling updates (Dockerfile → .NET 10, GH Actions matrix for sqlite/postgres, Govor.Server.slnx, global.json), and small infra changes (AutoMapper bump, NullPushProvider, storage/token handling).
This commit is contained in:
Artemy
2026-10-03 17:42:24 +07:00
parent 4603be9f71
commit 29cc51ee0c
127 changed files with 7290 additions and 2488 deletions
@@ -1,50 +1,19 @@
# HTTP-присутствие — ограничения
Требуется роль User/Admin.
| Метод | Маршрут | Текущее поведение |
| --- | --- | --- |
| PATCH | /api/online/ping | Вызывает PingHandlerService, успех 200 без тела |
| GET | /api/online/status/{userId} | Неработоспособен: 500 |
В конструкторе не присваиваются _userOnlineStore и _presenceReader. GetStatus обращается к null; catch возвращает 500 "Internal server error.".
Задуманное тело status — { isOnline, lastSeen }, но сейчас его нельзя считать рабочим контрактом.
Для событий online/offline подключайтесь к /hubs/presence. Ping и наличие SignalR-подключения — разные механизмы; требуется единая политика lastSeen/TTL. Не считайте HTTP ping подтверждением активного presence-соединения.
---
description: >-
Description: Controller for handling user online status updates by processing
ping requests.
---
Проверено по исходникам на 03.10.2026, commit `4603be9`. Описано текущее поведение; успешная сборка не означает проверку работающего сервера.
# OnlinePingingController(не работает)
**Route**: `api/online`\
**Authorize**: Requires "User" or "Admin" role
### <mark style="color:purple;">End Point {PATCH}</mark>
`[PATCH] api/online/ping`
#### Description
Updates the online status of the current user by sending a ping request.
**Request**
* **Content-Type**: `application/json`
* **Request Body**: None
**Responses**
* **200 OK**: Ping processed successfully.
```json
{}
```
* **400 Bad Request**: If the user cannot be found in the database.
```json
"User can't be found in our database."
```
* **403 Forbidden**: If the user is not authorized to perform the action.
```json
{
"error": "Not authorized to perform this action."
}
```
* **500 Internal Server Error**: Indicates an unexpected error.
```json
{
"error": "Failed to send friend request."
}
```
Источник: [Govor.API/Controllers/OnlinePingingController.cs](https://github.com/Govor-team/Govor/blob/4603be9f714135e0af72d505d17f3d1709834bea/Govor.API/Controllers/OnlinePingingController.cs).