# Latest

**URL:** https://meta.discourse.org/latest.md?page=27&period=day

[最新](https://meta.discourse.org/latest.md) · [类别](https://meta.discourse.org/categories.md) · [标签](https://meta.discourse.org/tags.md)

**Page:** 28

---

## [表单模板编辑器中的字段在编辑预览中丢失了换行符](https://meta.discourse.org/t/form-template-composer-fields-lose-their-newlines-in-the-edit-preview/411146)

<div class="topic-metadata">

**Author:** [@ScaryLarryGames1](https://meta.discourse.org/u/ScaryLarryGames1)\
**回复:** 1\
**最近更新：:** [2026 年8 月 31 日 20:43 UTC](https://meta.discourse.org/t/form-template-composer-fields-lose-their-newlines-in-the-edit-preview/411146 "2026-08-31T20:43:11Z")

</div>

编辑使用表单模板的帖子时，编辑器预览会将任何多行编辑器字段渲染为一整行：标题与其后的句子粘连在一起，列表和 BBCode 则以纯文本形式显示。保存后的帖子内容则……

---

## [（不推荐）从主题或插件覆盖 Discourse 模板](https://meta.discourse.org/t/not-recommended-overriding-discourse-templates-from-a-theme-or-plugin/247487)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 9\
**最近更新：:** [2024 年3 月 7 日 13:20 UTC](https://meta.discourse.org/t/not-recommended-overriding-discourse-templates-from-a-theme-or-plugin/247487 "2024-03-07T13:20:54Z")

</div>

理想情况下，在通过主题/插件自定义 Discourse 时，您应使用 CSS、JavaScript 插件 API 或插件插槽（plugin outlets）。如果这些方法都不适用于您的使用场景，欢迎向 Discourse 核心提交 PR，或发起一个 Devel…

---

## [防止意外序列化 ActiveRecord 模型](https://meta.discourse.org/t/preventing-accidental-serialization-of-activerecord-models/314495)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 2\
**最近更新：:** [2024 年7 月 23 日 17:59 UTC](https://meta.discourse.org/t/preventing-accidental-serialization-of-activerecord-models/314495 "2024-07-23T17:59:58Z")

</div>

我们引入了一个补丁，以防止在未指定要序列化的字段的情况下意外序列化 ActiveRecord 模型。此更改确保我们能够控制包含哪些字段，从而避免潜在的 is…

---

## [使用 modifyClass 修改核心行为](https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 6\
**最近更新：:** [2026 年3 月 4 日 07:13 UTC](https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064 "2026-03-04T07:13:43Z")

</div>

对于高级主题和插件，Discourse 提供了 modifyClass 系统。该系统允许你扩展并覆盖核心 JavaScript 类中的许多功能。 何时使用 modifyClass modifyClass 应作为最后的手段……

---

## [在主题或插件中使用插件输出连接器](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 12\
**最近更新：:** [2024 年10 月 14 日 10:37 UTC](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727 "2024-10-14T10:37:16Z")

</div>

Discourse 包含数百个插件出口（Plugin Outlets），可用于向 Discourse 用户界面中注入新内容或替换现有内容。系统提供了“出口参数”（Outlet arguments），以便根据……对内容进行自定义。

---

## [使用 JS API](https://meta.discourse.org/t/using-the-js-api/41281)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 18\
**最近更新：:** [2026 年1 月 30 日 07:30 UTC](https://meta.discourse.org/t/using-the-js-api/41281 "2026-01-30T07:30:33Z")

</div>

Discourse 的 JavaScript API 允许主题和插件对用户体验进行广泛的自定义。最简单的使用方式是：从管理面板创建新主题，点击“编辑代码”，然后前往 …

---

## [将模态框从旧版控制器迁移到新的 DModal 组件 API](https://meta.discourse.org/t/converting-modals-from-legacy-controllers-to-new-dmodal-component-api/268057)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 9\
**最近更新：:** [2023 年11 月 7 日 17:05 UTC](https://meta.discourse.org/t/converting-modals-from-legacy-controllers-to-new-dmodal-component-api/268057 "2023-11-07T17:05:46Z")

</div>

:information\_source: 如果您正在实现新的 Modal，请查阅此处的主文档。本主题介绍了如何将现有的基于控制器的 Modal 迁移到新的基于组件的 API。 过去，Discourse 使用……

---

## [为旧版 Discourse 安装固定插件和主题版本（d-compat 分支）](https://meta.discourse.org/t/pinning-plugin-and-theme-versions-for-older-discourse-installs-d-compat-branches/272665)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 6\
**最近更新：:** [2026 年7 月 17 日 10:56 UTC](https://meta.discourse.org/t/pinning-plugin-and-theme-versions-for-older-discourse-installs-d-compat-branches/272665 "2026-07-17T10:56:56Z")

</div>

:open\_book: 背景 主题和插件开发者通常希望针对 Discourse 的最新版本进行开发，而无需担心向后兼容性问题。但运行旧版 Discourse 的网站仍然需要一个版本…

---

## [如何运行 Discourse 核心、插件和主题的 QUnit 测试套件](https://meta.discourse.org/t/how-to-run-discourse-core-plugin-and-theme-qunit-test-suites/66857)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 0\
**最近更新：:** [2017 年7 月 26 日 14:09 UTC](https://meta.discourse.org/t/how-to-run-discourse-core-plugin-and-theme-qunit-test-suites/66857 "2017-07-26T14:09:58Z")

</div>

Discourse 为核心功能、插件和主题提供了广泛的前端测试。一旦你拥有了可用的本地开发环境，就可以通过多种不同的方式在本地运行这些测试。 在浏览器中运行测试 C…

---

## [为 Discourse 中的 Ember 代码编写验收测试和组件测试](https://meta.discourse.org/t/write-acceptance-tests-and-component-tests-for-ember-code-in-discourse/49167)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 3\
**最近更新：:** [2024 年2 月 23 日 12:42 UTC](https://meta.discourse.org/t/write-acceptance-tests-and-component-tests-for-ember-code-in-discourse/49167 "2024-02-23T12:42:10Z")

</div>

自动化测试是保护代码免受未来回归问题影响的好方法。许多人都熟悉如何在我们的 Rails 代码库中使用 rspec 来实现这一点，但对于一些人来说，JavaScript 部分可能还有些神秘……

---

## [想法：聊天帖子](https://meta.discourse.org/t/idea-chat-posts/374905)

<div class="topic-metadata">

**Author:** [@Johnny\_McIvor](https://meta.discourse.org/u/Johnny_McIvor)\
**回复:** 28\
**最近更新：:** [2026 年8 月 31 日 16:38 UTC](https://meta.discourse.org/t/idea-chat-posts/374905 "2026-08-31T16:38:11Z")

</div>

拥有论坛的一大好处是，您可以轻松地存档和搜索所有内容。 然而，人们因为缺乏自发交流而对论坛敬而远之。 我建议采用一种混合模式……

---

## [Discourse 的 de\_DE（及其他语言）宣传材料](https://meta.discourse.org/t/promotional-material-fur-discourse-in-de-de-and-othe-languages/411037)

<div class="topic-metadata">

**Author:** [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)\
**回复:** 7\
**最近更新：:** [2026 年8 月 31 日 14:01 UTC](https://meta.discourse.org/t/promotional-material-fur-discourse-in-de-de-and-othe-languages/411037 "2026-08-31T14:01:03Z")

</div>

我正在寻找德语的 Discourse 宣传材料。我之前已经与 @JammyDodger 讨论过他在 2023 年宣布的视频，见帖子《全新的 Discourse 视频！🥳》。不幸的是，没有 sep…

---

## [移动设备上的左侧汉堡菜单](https://meta.discourse.org/t/left-side-hamburger-menu-on-mobile/164513)

<div class="topic-metadata">

**Author:** [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**回复:** 51\
**最近更新：:** [2026 年8 月 31 日 12:51 UTC](https://meta.discourse.org/t/left-side-hamburger-menu-on-mobile/164513 "2026-08-31T12:51:33Z")

</div>

One thing we never got around to and caused some confusion after our work on Full height, slide out hamburger menu was that the hamburger menu, on the right side, opens a menu from the left side. For those interested in …

---

## [API密钥范围是否可以将新主题限制在一个类别中？](https://meta.discourse.org/t/api-key-scope-to-limit-new-topics-to-just-one-category/269511)

<div class="topic-metadata">

**Author:** [@packman](https://meta.discourse.org/u/packman)\
**回复:** 3\
**最近更新：:** [2026 年8 月 31 日 12:48 UTC](https://meta.discourse.org/t/api-key-scope-to-limit-new-topics-to-just-one-category/269511 "2026-08-31T12:48:44Z")

</div>

是否可以创建一个细粒度的API密钥，将密钥限制为仅在特定类别（或类别）中发布？在topics/write作用域中有一个topic\_id参数，但我希望可能有一个category……

---

## [工作区组](https://meta.discourse.org/t/workspace-groups/399936)

<div class="topic-metadata">

**Author:** [@Anton\_Akhmerov](https://meta.discourse.org/u/Anton_Akhmerov)\
**回复:** 14\
**最近更新：:** [2026 年8 月 31 日 09:52 UTC](https://meta.discourse.org/t/workspace-groups/399936 "2026-08-31T09:52:31Z")

</div>

:information\_source: 摘要 一个原型插件，用于将单个 Discourse 服务器作为多个团队的主页（类似 Slack 或 Mattermost）。 :hammer\_and\_wrench: 仓库链接 GitHub - akhmerov/discourse-workspac…

---

## [在移动设备上将 HTML 粘贴到 Markdown 编辑器时出现问题（直到先粘贴一次到富文本编辑器）](https://meta.discourse.org/t/problem-pasting-html-into-markdown-composer-on-mobile-until-pasting-once-into-rich-text-editor/409530)

<div class="topic-metadata">

**Author:** [@sk-or-v1-contents](https://meta.discourse.org/u/sk-or-v1-contents)\
**回复:** 4\
**最近更新：:** [2026 年8 月 31 日 09:26 UTC](https://meta.discourse.org/t/problem-pasting-html-into-markdown-composer-on-mobile-until-pasting-once-into-rich-text-editor/409530 "2026-08-31T09:26:59Z")

</div>

优先级/严重性：中等？ 平台：Android 版 Edge，try.discourse.org（在安全模式下可复现），设备处于竖屏状态 描述： 在移动设备上，Markdown 编辑器不会将 HTML 粘贴为 Markdown，直到它……

---

## [Discourse Connect 与嵌套回复](https://meta.discourse.org/t/discourse-connect-and-nested-replies/411247)

<div class="topic-metadata">

**Author:** [@Damian\_Boon](https://meta.discourse.org/u/Damian_Boon)\
**回复:** 3\
**最近更新：:** [2026 年8 月 31 日 03:12 UTC](https://meta.discourse.org/t/discourse-connect-and-nested-replies/411247 "2026-08-31T03:12:09Z")

</div>

我在自己的 Discourse 安装中使用了嵌套回复，并希望在 WordPress 文章中展示它们。虽然回复能够显示出来，但并没有呈现嵌套结构。有没有办法让它们像 Discourse 中那样显示？

---

## [当前项目 - 最后一个问题](https://meta.discourse.org/t/current-projects-last-issue/411183)

<div class="topic-metadata">

**Author:** [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**回复:** 2\
**最近更新：:** [2026 年8 月 31 日 01:17 UTC](https://meta.discourse.org/t/current-projects-last-issue/411183 "2026-08-31T01:17:43Z")

</div>

这是我们最后一次计划发布的 当前项目 帖子，因为我们打算尝试一种新的方式来分享我们在 Discourse 上的工作内容。 我们创建了一个新的分类 Contribute \> Projects，为我们正在进行的每个项目单独创建了一个主题，并标记了它们当前的状态。 这些主题也可以在看板视图中查看，其中包含状态列，因此你可以在此处一目了然地查看它们： https://meta.discourse.org/kanban/boards/pro…

---

## [在 JavaScript 的 \`User\` 模型中弃用 \`user.groups\`](https://meta.discourse.org/t/deprecating-the-user-of-user-groups-in-the-user-model-in-javascript/411124)

<div class="topic-metadata">

**Author:** [@martin](https://meta.discourse.org/u/martin)\
**回复:** 5\
**最近更新：:** [2026 年8 月 31 日 01:12 UTC](https://meta.discourse.org/t/deprecating-the-user-of-user-groups-in-the-user-model-in-javascript/411124 "2026-08-31T01:12:56Z")

</div>

这与 The road to stable, then permanent, for granular\_anonymous\_and\_logged\_in\_groups\_permissions 和 Granular group-based permissions for anonymous and logged in users 这两个主题都有关。 在核心代码以及许多主题和插件中，以下这种模式已经变得相当常见： const groupI…

---

## [Discourse 新增客户端图像优化](https://meta.discourse.org/t/new-client-side-image-optimizations-for-discourse/402705)

<div class="topic-metadata">

**Author:** [@Falco](https://meta.discourse.org/u/Falco)\
**回复:** 3\
**最近更新：:** [2026 年8 月 30 日 19:20 UTC](https://meta.discourse.org/t/new-client-side-image-optimizations-for-discourse/402705 "2026-08-30T19:20:06Z")

</div>

大约 5 年前，我们推出了客户端图像优化功能，使用户能够上传超过站点限制的图片，节省用户上传带宽，减少社区存储空间占用，并提升用户体验……

---

## [加密私信](https://meta.discourse.org/t/chiffrer-les-messages-prives/411222)

<div class="topic-metadata">

**Author:** [@Mireille\_Coilhac](https://meta.discourse.org/u/Mireille_Coilhac)\
**回复:** 7\
**最近更新：:** [2026 年8 月 30 日 17:32 UTC](https://meta.discourse.org/t/chiffrer-les-messages-prives/411222 "2026-08-30T17:32:22Z")

</div>

你好， 我是一名 Discourse 论坛的管理员，有人问我是否可以为私信启用加密功能。我注意到 Discourse Encrypt 插件已经过时了。请问有解决方案吗？ …

---

## [这个新的搜索页面是什么时候添加的？](https://meta.discourse.org/t/when-was-this-new-search-page-added/411219)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**回复:** 1\
**最近更新：:** [2026 年8 月 30 日 04:40 UTC](https://meta.discourse.org/t/when-was-this-new-search-page-added/411219 "2026-08-30T04:40:43Z")

</div>

我在 Meta 上看到了这个重新设计的搜索页面。这是 Meta 独有的功能，还是某个没有发布公告的新特性？

---

## [我想感谢 Discourse 开发团队](https://meta.discourse.org/t/i-would-like-to-thank-the-discourse-development-team/411209)

<div class="topic-metadata">

**Author:** [@ErespawN](https://meta.discourse.org/u/ErespawN)\
**回复:** 12\
**最近更新：:** [2026 年8 月 30 日 03:49 UTC](https://meta.discourse.org/t/i-would-like-to-thank-the-discourse-development-team/411209 "2026-08-30T03:49:05Z")

</div>

我已经很久没有用过这么棒的论坛系统了——我能想到的功能它都能实现，我还成功地把我的论坛打造成了社交媒体和论坛的完美融合体。我想感谢 Discourse 的开发团队……

---

## [理解话语信任等级](https://meta.discourse.org/t/understanding-discourse-trust-levels/90752)

<div class="topic-metadata">

**Author:** [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**回复:** 119\
**最近更新：:** [2026 年8 月 29 日 20:39 UTC](https://meta.discourse.org/t/understanding-discourse-trust-levels/90752 "2026-08-29T20:39:28Z")

</div>

最初发表于：Understanding Discourse Trust Levels 用户信任系统是 Discourse 的基石。信任等级是一种……在用户学习社区规则期间，将其“沙盒化”以防止其无意中伤害自己或其他用户的方法。同时，随着用户积累经验，逐步授予他们更多权限，以便他们协助维护社区并进行管理…… 如需查看详细的信任等级权限列表，请参阅 信任等级权限表（含版主角色）

---

## [关闭聊天](https://meta.discourse.org/t/close-a-chat/297444)

<div class="topic-metadata">

**Author:** [@Moin](https://meta.discourse.org/u/Moin)\
**回复:** 7\
**最近更新：:** [2026 年8 月 29 日 19:16 UTC](https://meta.discourse.org/t/close-a-chat/297444 "2026-08-29T19:16:29Z")

</div>

当您想关闭个人聊天并且不使用移动视图时，您必须将鼠标悬停在聊天上。 在平板电脑上无法实现这一点。当您点击聊天时，您可以移动日期，但我无法点击 :heavy\_multiplication\_x:

---

## [主题摘要显示不完整](https://meta.discourse.org/t/topic-summaries-being-cut-short/411212)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回复:** 1\
**最近更新：:** [2026 年8 月 29 日 19:01 UTC](https://meta.discourse.org/t/topic-summaries-being-cut-short/411212 "2026-08-29T19:01:13Z")

</div>

我注意到主题的摘要被自动更新了，但似乎内容被截断了。 我不确定这是大语言模型（LLM）的问题还是插件的问题，但如果我们能够为摘要添加标记或请求 r…

---

## [Pyx 的现代主题](https://meta.discourse.org/t/pyxs-modern-theme/357665)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回复:** 44\
**最近更新：:** [2026 年8 月 29 日 18:47 UTC](https://meta.discourse.org/t/pyxs-modern-theme/357665 "2026-08-29T18:47:28Z")

</div>

:information\_source: 摘要 Pyx 的现代主题（Modern Theme）是 darkpixlz 现代主题的继任者。 :eyeglasses: 预览 主题创建者 :hammer\_and\_wrench: 代码库 GitHub - pyxfluff/moderntheme: 现代主题…

---

## [调试 Discourse 嵌入中的 display none 问题](https://meta.discourse.org/t/debugging-the-display-none-issue-in-discourse-embeds/411211)

<div class="topic-metadata">

**Author:** [@Carlo](https://meta.discourse.org/u/Carlo)\
**回复:** 1\
**最近更新：:** [2026 年8 月 29 日 18:04 UTC](https://meta.discourse.org/t/debugging-the-display-none-issue-in-discourse-embeds/411211 "2026-08-29T18:04:03Z")

</div>

嘿， 感谢这个新功能，看起来很棒！ 我一直在尝试设置完整应用嵌入（Full App Embed），一切都运行正常，包括登录。 唯一的问题是，当我点击“回复”时，没有任何反应——编辑器/文本区域没有显示出来。 我甚至在浏览器控制台中也没有看到任何相关的错误。 是不是我的配置漏掉了什么？ 谢谢！

---

## [Discourse 聊天机器人 🤖](https://meta.discourse.org/t/discourse-chatbot/256652)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回复:** 220\
**最近更新：:** [2026 年8 月 29 日 13:16 UTC](https://meta.discourse.org/t/discourse-chatbot/256652 "2026-08-29T13:16:13Z")

</div>

:information\_source: 摘要 Discourse 的原创 AI 聊天机器人 :hammer\_and\_wrench: 仓库链接 GitHub - merefield/discourse-chatbot: 一个具备 RAG 功能的 AI 机器人，支持主题、聊天及客户支持……

---

## [移动 Firefox 在屏幕锁定时滚动到主题底部](https://meta.discourse.org/t/mobile-firefox-scrolling-to-bottom-of-topic-on-screen-lock/409013)

<div class="topic-metadata">

**Author:** [@riking](https://meta.discourse.org/u/riking)\
**回复:** 3\
**最近更新：:** [2026 年8 月 29 日 13:31 UTC](https://meta.discourse.org/t/mobile-firefox-scrolling-to-bottom-of-topic-on-screen-lock/409013 "2026-08-29T13:31:35Z")

</div>

在 community.openstreetmap.org 最近一次更新后，出现了一个奇怪的 bug：每当我的手机屏幕关闭时，滚动位置就会跳到主题底部！ 我录制了一段屏幕视频…

[上一页](https://meta.discourse.org/latest.md?page=26&period=day)

[下一页](https://meta.discourse.org/latest.md?page=28&period=day)
