feat: add checkForProjectUsage function and integrate it into message handling

This commit is contained in:
ArnabChatterjee20k
2026-05-18 10:42:11 +05:30
parent cf80efbc3c
commit d18de7d1e8
+10
View File
@@ -326,6 +326,12 @@ if (!function_exists('triggerStats')) {
}
}
if (!function_exists('checkForProjectUsage')) {
function checkForProjectUsage(Document $project): void
{
}
}
$realtime = getRealtime();
$presenceState = new PresenceState();
@@ -1086,6 +1092,10 @@ $server->onMessage(function (int $connection, string $message) use ($container,
$project = null;
}
if ($project !== null) {
checkForProjectUsage($project);
}
/*
* Abuse Check
*