mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-10 07:11:27 +00:00
Bump description max length to 512, log character count
This commit is contained in:
parent
23900f8217
commit
5d6e339fa8
1 changed files with 3 additions and 3 deletions
|
@ -95,15 +95,15 @@ public class PublishController : ControllerBase
|
||||||
return this.BadRequest();
|
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();
|
return this.BadRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (slot.Name.Length > 64)
|
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();
|
return this.BadRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue