1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 09:54:17 +02:00

hide hash for private demos

This commit is contained in:
Robin Appelman 2025-05-03 15:22:33 +02:00
commit 9595b7f6f5
2 changed files with 6 additions and 1 deletions

View file

@ -248,6 +248,11 @@ class DemoProviderTest extends TestCase {
} else {
$this->assertEquals('', $json['url']);
}
if ($visible) {
$this->assertEquals('hash', $json['hash']);
} else {
$this->assertEquals('', $json['hash']);
}
$storedDemo->showPrivateData(true);
$json = $storedDemo->jsonSerialize();