Флаг client_read_receipts: не вызывать POST /read по умолчанию (убирает 404 в консоли)
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user