# 聊天插件 Bug：page\_size 对过去消息无效和表情符号渲染问题

**URL:** https://meta.discourse.org/t/chat-plugin-bugs-page-size-ignored-for-past-messages-emoji-rendering-issue/376424
**Category:** Support
**Tags:** chat
**Created:** [2025年七月29日 14:20 UTC](https://meta.discourse.org/t/chat-plugin-bugs-page-size-ignored-for-past-messages-emoji-rendering-issue/376424 "2025-07-29T14:20:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Nima1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nima1/32/299628_2.png) [@Nima1](https://meta.discourse.org/u/Nima1)
#### Post date: [2025年八月2日 09:52 UTC](https://meta.discourse.org/t/chat-plugin-bugs-page-size-ignored-for-past-messages-emoji-rendering-issue/376424/3 "2025-08-02T09:52:11Z")

</div>

> [@Chat UI: Emojis render as shortcodes in thread previews](https://meta.discourse.org/t/chat-ui-emojis-render-as-shortcodes-in-thread-previews/376985):
>
> I’d like to report a UI rendering bug in the Discourse Chat plugin. In the chat channel list, the preview for the latest message in a thread displays the raw emoji shortcode instead of the rendered emoji. Steps to Reproduce: Go to any chat channel. Create a new thread or reply to an existing one. Send a message that contains an emoji (e.g., “Hello world :shaking\_hands:”). Navigate back to the main chat view where all channels and threads are listed. Observe the message preview fo…

> [@Chat API: page\_size parameter is ignored when direction=past](https://meta.discourse.org/t/chat-api-page-size-parameter-is-ignored-when-direction-past/376984):
>
> I’m reporting a bug with the Discourse Chat plugin’s API. When querying for past chat messages, the page\_size parameter is ignored, and the endpoint always returns the maximum number of messages. Steps to Reproduce: Make an API call to the chat messages endpoint (e.g., /chat/{channel\_id}/messages.json). Use the following parameters in the request: target\_message\_id: [ID of a recent message] direction: past page\_size: 5 (or any number less than 50) Expected Behavior: The API …

---

_[View the full topic](https://meta.discourse.org/t/chat-plugin-bugs-page-size-ignored-for-past-messages-emoji-rendering-issue/376424)._
