use Permissions for Favourites / Artist / Relationships, and also check image lock when sending ImageInfoSet instead of getting each receiver to check it

This commit is contained in:
Shish
2020-02-08 00:24:13 +00:00
parent c6d50f417f
commit 0b304bdf2e
12 changed files with 44 additions and 42 deletions

View File

@@ -162,7 +162,9 @@ function stream_file(string $file, int $start, int $end): void
$buffer = $end - $p + 1;
}
echo fread($fp, $buffer);
if(!defined("UNITTEST")) @ob_flush();
if (!defined("UNITTEST")) {
@ob_flush();
}
flush();
// After flush, we can tell if the client browser has disconnected.