✨ Truncated the post's body to prevent them from being too long
This commit is contained in:
@ -38,6 +38,7 @@ public class PostController(AppDatabase db, PostService ps, RelationshipService
|
||||
.Skip(offset)
|
||||
.Take(take)
|
||||
.ToListAsync();
|
||||
posts = PostService.TruncatePostContent(posts);
|
||||
|
||||
Response.Headers["X-Total"] = totalCount.ToString();
|
||||
|
||||
@ -101,6 +102,7 @@ public class PostController(AppDatabase db, PostService ps, RelationshipService
|
||||
.Skip(offset)
|
||||
.Take(take)
|
||||
.ToListAsync();
|
||||
posts = PostService.TruncatePostContent(posts);
|
||||
|
||||
Response.Headers["X-Total"] = totalCount.ToString();
|
||||
|
||||
|
Reference in New Issue
Block a user