From 5d6e339fa84ca4c3594eacb54ecb2d9c241eb5fe Mon Sep 17 00:00:00 2001 From: jvyden Date: Mon, 25 Jul 2022 19:24:18 -0400 Subject: [PATCH] Bump description max length to 512, log character count --- .../Controllers/Slots/PublishController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/PublishController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/PublishController.cs index c47c9c29..5f5d423c 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/PublishController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/PublishController.cs @@ -95,15 +95,15 @@ public class PublishController : ControllerBase return this.BadRequest(); } - if (slot.Description.Length > 500) + if (slot.Description.Length > 512) { - Logger.Warn("Rejecting level upload, description too long", LogArea.Publish); + Logger.Warn($"Rejecting level upload, description too long ({slot.Description.Length} characters)", LogArea.Publish); return this.BadRequest(); } if (slot.Name.Length > 64) { - Logger.Warn("Rejecting level upload, title too long", LogArea.Publish); + Logger.Warn($"Rejecting level upload, title too long ({slot.Name.Length} characters)", LogArea.Publish); return this.BadRequest(); }