diff --git a/DysonNetwork.Sphere/Chat/ChatRoomController.cs b/DysonNetwork.Sphere/Chat/ChatRoomController.cs index 3ab72ab..861659e 100644 --- a/DysonNetwork.Sphere/Chat/ChatRoomController.cs +++ b/DysonNetwork.Sphere/Chat/ChatRoomController.cs @@ -149,7 +149,7 @@ public class ChatRoomController( public class ChatRoomRequest { - [Required] [MaxLength(1024)] public string? Name { get; set; } + [Required][MaxLength(1024)] public string? Name { get; set; } [MaxLength(4096)] public string? Description { get; set; } [MaxLength(32)] public string? PictureId { get; set; } [MaxLength(32)] public string? BackgroundId { get; set; } @@ -239,7 +239,6 @@ public class ChatRoomController( var chatRoom = await db.ChatRooms .Where(e => e.Id == id) - .Include(c => c.Background) .FirstOrDefaultAsync(); if (chatRoom is null) return NotFound(); @@ -800,4 +799,4 @@ public class ChatRoomController( AccountService.SetCultureInfo(member.Account); await nty.SendNotification(member.Account, "invites.chats", title, null, body, actionUri: "/chat"); } -} \ No newline at end of file +}