🐛 Fix again for included non-exists anymore attachments field

This commit is contained in:
LittleSheep 2025-06-02 02:56:58 +08:00
parent 568afc981e
commit f5fb133e99
3 changed files with 0 additions and 6 deletions

View File

@ -77,8 +77,6 @@ public class AccountCurrentController(
var profile = await db.AccountProfiles
.Where(p => p.Account.Id == userId)
.Include(profile => profile.Background)
.Include(profile => profile.Picture)
.FirstOrDefaultAsync();
if (profile is null) return BadRequest("Unable to get your account.");

View File

@ -297,8 +297,6 @@ public class PostController(
var post = await db.Posts
.Where(e => e.Id == id)
.Include(e => e.Publisher)
.Include(e => e.Publisher.Picture)
.Include(e => e.Publisher.Background)
.Include(e => e.Categories)
.Include(e => e.Tags)
.FirstOrDefaultAsync();

View File

@ -93,8 +93,6 @@ namespace DysonNetwork.Sphere.Publisher;
var publisher = await db.Publishers
.Where(p => p.Name == name)
.Include(publisher => publisher.Picture)
.Include(publisher => publisher.Background)
.FirstOrDefaultAsync();
if (publisher is null) return NotFound();