🐛 Fix update realm failed caused by picture

This commit is contained in:
LittleSheep 2025-06-27 23:41:51 +08:00
parent 19ddc1b363
commit ac496777ed
2 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,6 @@
using System.ComponentModel.DataAnnotations;
using DysonNetwork.Sphere.Account;
using DysonNetwork.Sphere.Permission;
using DysonNetwork.Sphere.Post;
using DysonNetwork.Sphere.Realm;
using DysonNetwork.Sphere.Storage;
using Microsoft.AspNetCore.Authorization;
@ -450,4 +449,4 @@ public class PublisherController(
return NoContent();
}
}
}

View File

@ -243,7 +243,7 @@ public class RealmController(
}
}
[HttpGet("{slug}/members/me")]
[Authorize]
@ -384,8 +384,6 @@ public class RealmController(
var realm = await db.Realms
.Where(r => r.Slug == slug)
.Include(r => r.Picture)
.Include(r => r.Background)
.FirstOrDefaultAsync();
if (realm is null) return NotFound();
@ -611,4 +609,4 @@ public class RealmController(
return NoContent();
}
}
}