From 099d7255a25d3925b8f3eca587dca7ac63032458 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sun, 23 Jan 2022 13:16:41 -0500 Subject: [PATCH] Take 6 photos on userpage --- ProjectLighthouse/Pages/UserPage.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/Pages/UserPage.cshtml.cs b/ProjectLighthouse/Pages/UserPage.cshtml.cs index 4a5148ed..0fe8637f 100644 --- a/ProjectLighthouse/Pages/UserPage.cshtml.cs +++ b/ProjectLighthouse/Pages/UserPage.cshtml.cs @@ -27,7 +27,7 @@ public class UserPage : BaseLayout this.ProfileUser = await this.Database.Users.FirstOrDefaultAsync(u => u.UserId == userId); if (this.ProfileUser == null) return this.NotFound(); - this.Photos = await this.Database.Photos.OrderByDescending(p => p.Timestamp).Where(p => p.CreatorId == userId).Take(5).ToListAsync(); + this.Photos = await this.Database.Photos.OrderByDescending(p => p.Timestamp).Where(p => p.CreatorId == userId).Take(6).ToListAsync(); this.Comments = await this.Database.Comments.Include (p => p.Poster) .Include(p => p.Target) @@ -43,4 +43,4 @@ public class UserPage : BaseLayout return this.Page(); } -} \ No newline at end of file +}