Truncated the post's body to prevent them from being too long

This commit is contained in:
2025-05-01 23:49:17 +08:00
parent f7e926ad24
commit 24f1a3a9e9
5 changed files with 83 additions and 2 deletions

View File

@ -30,6 +30,7 @@ public class ActivityService(AppDatabase db)
.Include(e => e.Tags)
.FilterWithVisibility(currentUser, userFriends)
.ToListAsync();
posts = PostService.TruncatePostContent(posts);
var postsDict = posts.ToDictionary(p => p.Id);