mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Take 6 photos on userpage
This commit is contained in:
parent
7614f19907
commit
099d7255a2
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ public class UserPage : BaseLayout
|
||||||
this.ProfileUser = await this.Database.Users.FirstOrDefaultAsync(u => u.UserId == userId);
|
this.ProfileUser = await this.Database.Users.FirstOrDefaultAsync(u => u.UserId == userId);
|
||||||
if (this.ProfileUser == null) return this.NotFound();
|
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
|
this.Comments = await this.Database.Comments.Include
|
||||||
(p => p.Poster)
|
(p => p.Poster)
|
||||||
.Include(p => p.Target)
|
.Include(p => p.Target)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue