🐛 Fix queries still include the Attachments

This commit is contained in:
LittleSheep 2025-06-02 02:36:43 +08:00
parent 28ba9871bf
commit d48a2a8fe5

View File

@ -76,7 +76,6 @@ public class PostController(
.Include(e => e.Publisher)
.Include(e => e.Tags)
.Include(e => e.Categories)
.Include(e => e.Attachments)
.FilterWithVisibility(currentUser, userFriends)
.FirstOrDefaultAsync();
if (post is null) return NotFound();
@ -300,7 +299,6 @@ public class PostController(
.Include(e => e.Publisher)
.Include(e => e.Publisher.Picture)
.Include(e => e.Publisher.Background)
.Include(e => e.Attachments)
.Include(e => e.Categories)
.Include(e => e.Tags)
.FirstOrDefaultAsync();