Add bonus points to user ajax endpoint

This commit is contained in:
itismadness
2025-09-09 22:06:21 +00:00
committed by Spine
parent 8e7049a87e
commit cc74eaa4c3

View File

@@ -81,6 +81,7 @@ class User extends \Gazelle\Json {
!$downloaded => 0.0,
default => (float)ratio($uploaded, $downloaded, 5),
},
'bonusPoints' => $this->valueOrNull($user->bonusPointsTotal(), 'bonuspoints'),
],
'ranks' => [
'uploaded' => $this->valueOrNull($rank->rank('uploaded'), 'uploaded'),