# Chat API: direction=past일 때 page\_size 파라미터가 무시됩니다

**URL:** https://meta.discourse.org/t/chat-api-page-size-parameter-is-ignored-when-direction-past/376984
**Category:** Bug
**Tags:** chat, rest-api
**Created:** [8월 2, 2025, 9:50오전 UTC](https://meta.discourse.org/t/chat-api-page-size-parameter-is-ignored-when-direction-past/376984 "2025-08-02T09:50:52Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![loic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loic/32/105621_2.png) [@loic](https://meta.discourse.org/u/loic)
#### Post date: [8월 5, 2025, 10:31오전 UTC](https://meta.discourse.org/t/chat-api-page-size-parameter-is-ignored-when-direction-past/376984/3 "2025-08-05T10:31:29Z")

</div>

재현을 시도해 봤지만, 재현하지는 못했습니다.

`Chat::MessagesQuery`, `Chat::ListChannelMessages` 및 컨트롤러 액션을 스펙을 통해 확인했고, 로컬 인스턴스에서 수동으로 테스트해 보기도 했습니다. `page_size` 매개변수와 `direction` 매개변수 모두 예상대로 올바르게 처리되고 있습니다.

@Nima1 올바른 엔드포인트를 사용하고 계신지 확인해 주실 수 있을까요? `/chat/api/channels/3/messages?target_message_id=40&direction=past&page_size=5`처럼 `api`가 포함되어야 합니다.

`stable` 환경에서는 동작이 다를 수 있는지 여부는 아직 확인하지 못했습니다. 인스턴스가 `tests-passed` 브랜치와 최신 상태인지 확인해 보세요.

---

_[View the full topic](https://meta.discourse.org/t/chat-api-page-size-parameter-is-ignored-when-direction-past/376984)._
