Check for empty array.

This commit is contained in:
flash 2025-04-22 22:20:13 +00:00
parent e1155158d9
commit d9cf9674f3
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
2 changed files with 4 additions and 1 deletions

View file

@ -1 +1 @@
20250422.2
20250422.3

View file

@ -181,6 +181,9 @@ final class ChatApiRoutes implements RouteHandler, UrlSource {
secure: $secure,
), false);
if(empty($servers))
return 404;
$response->setCacheControl('max-age=300', 'stale-if-error=600', 'public', 'immutable');
// the algo of all time