🐛 Fix again for included non-exists anymore attachments field
This commit is contained in:
		| @@ -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."); | ||||
|  | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
| @@ -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(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user