첫화면 로드를 좀 줄이자...

This commit is contained in:
lunaticbum 2025-12-30 18:10:35 +09:00
parent 84ba6a02aa
commit dd528c702f

View File

@ -153,7 +153,7 @@ class PostViewController(
@RequestParam cursor: Long,
@RequestParam(required = false) q: String? // 더보기 할 때도 검색어 유지 필요
): FeedResponse {
return feedService.getGlobalFeed(cursor, 10, q).awaitSingle()
return feedService.getGlobalFeed(cursor, 6, q).awaitSingle()
}
// --- View Endpoints ---
@ -178,7 +178,7 @@ class PostViewController(
// [변경] FeedService를 통해 통합 피드 데이터 조회
val username = userDetails?.username
// 파라미터: (cursor=null, size=10, keyword=q, username)
val feedData = feedService.getGlobalFeed(null, 10, q, username).awaitSingle()
val feedData = feedService.getGlobalFeed(null, 6, q, username).awaitSingle()
vm.modelMap["feedItems"] = feedData.items
vm.modelMap["nextCursor"] = feedData.nextCursor