1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

add hash to demo listing

This commit is contained in:
Robin Appelman 2017-06-10 12:03:09 +02:00
commit efd74cd966

View file

@ -187,7 +187,8 @@ class Demo implements \JsonSerializable {
'redScore' => $this->getRedScore(), 'redScore' => $this->getRedScore(),
'blueScore' => $this->getBlueScore(), 'blueScore' => $this->getBlueScore(),
'playerCount' => $this->getPlayerCount(), 'playerCount' => $this->getPlayerCount(),
'uploader' => $this->uploaderUser ? $this->getUploaderUser()->jsonSerialize() : $this->getUploader() 'uploader' => $this->uploaderUser ? $this->getUploaderUser()->jsonSerialize() : $this->getUploader(),
'hash' => $this->getHash()
]; ];
if ($this->players) { if ($this->players) {
$data['players'] = $this->getPlayers(); $data['players'] = $this->getPlayers();