Флаг client_read_receipts: не вызывать POST /read по умолчанию (убирает 404 в консоли)

This commit is contained in:
root
2026-05-14 10:31:51 +00:00
parent 2facc3d0d2
commit 306bcc8f51
4 changed files with 10 additions and 2 deletions
+5
View File
@@ -39,6 +39,10 @@ class PageController extends Controller {
// Optional full WebSocket URL prefix, e.g. wss://support.f7cloud.ru/api/ws (path before /tickets/{id})
$supportWsBase = $this->config->getAppValue('f7support', 'support_ws_base', '');
// POST /api/client/tickets/{id}/read — только если бэкенд уже выкатили (иначе 404 и шум в консоли NC).
// Включение: occ config:app:set f7support client_read_receipts --value=1
$clientReadReceipts = $this->config->getAppValue('f7support', 'client_read_receipts', '0');
Util::addStyle('f7support', 'f7support');
Util::addScript('f7support', 'main');
@@ -48,6 +52,7 @@ class PageController extends Controller {
'supportApiBase' => $supportApiBase,
'supportApiOrigin' => $supportApiOrigin,
'supportWsBase' => $supportWsBase,
'clientReadReceipts' => $clientReadReceipts,
]);
}
}