diff --git a/MilimoeWebAPI/Controllers/APIController.cs b/MilimoeWebAPI/Controllers/APIController.cs index 11f91d3..9069649 100644 --- a/MilimoeWebAPI/Controllers/APIController.cs +++ b/MilimoeWebAPI/Controllers/APIController.cs @@ -21,6 +21,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers int year = dto.Year; int month = dto.Month; string content = dto.Content; + if (content.Length > 40) content = content[..40]; string result = ""; if (year == 0) year = DateTime.Today.Year; if (month == 0) month = DateTime.Today.Month; @@ -75,6 +76,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers return result; } + [AllowAnonymous] [HttpGet("sclist")] public string SCList(long id, long group, int year = 0, int month = 0, bool reverse = false) {