Merge branch 'highscore-notify' of https://github.com/Metraberryy/ProjectLighthouse into highscore-notify

This commit is contained in:
Kat 2025-01-02 14:04:39 -08:00
commit 9119111dfb
No known key found for this signature in database
GPG key ID: 11C549BC42DB9B8A

View file

@ -176,6 +176,7 @@ public class ScoreController : ControllerBase
{
GameScore? second = scores.Scores[1];
UserEntity? user = await this.database.UserFromGameToken(token);
await this.database.SendNotification(second.UserId, $"{user?.InfoXml} beat your highscore (<em>{second.Points}</em>) on {slot.InfoXml} with a score of <em>{score.Points}</em>.", true);
}