Nchan optimize unread notifications reporting

This commit is contained in:
bergware
2021-06-02 21:43:45 +02:00
parent 26c999b899
commit 77600d8847

View File

@@ -21,7 +21,7 @@ require_once "$docroot/webGui/include/publish.php";
while (true) {
$get = shell_exec("$notify get");
if (!file_exists($unread) || file_get_contents($unread)!=$get) {
publish('notify', $get, 0);
publish('notify', $get);
file_put_contents($unread,$get);
}
sleep(3);