# Latest

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

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

**Page:** 1235

---

## [在开发中为插件添加 HTTP 标头](https://meta.discourse.org/t/adding-http-headers-to-plugin-in-development/151789)

<div class="topic-metadata">

**Author:** [@DBHacker](https://meta.discourse.org/u/DBHacker)\
**回复:** 3\
**最近更新：:** [2020 年5 月 18 日 06:02 UTC](https://meta.discourse.org/t/adding-http-headers-to-plugin-in-development/151789 "2020-05-18T06:02:24Z")

</div>

场景： 正在开发插件，并使用 Nginx 作为反向代理连接到 Rails:3000，一切运行良好，但在访问 API 时遇到了令人头疼的 CORS 错误，这是大家都熟悉并“喜爱”的问题。 访问 XMLHttpRequest 时出现错误：'bla…'

---

## [回复时同时使用中文和英文出现错误](https://meta.discourse.org/t/error-when-replying-with-both-chinese-and-english/151439)

<div class="topic-metadata">

**Author:** [@Jamie\_Liu1](https://meta.discourse.org/u/Jamie_Liu1)\
**回复:** 1\
**最近更新：:** [2020 年5 月 18 日 06:21 UTC](https://meta.discourse.org/t/error-when-replying-with-both-chinese-and-english/151439 "2020-05-18T06:21:49Z")

</div>

大家好！我在尝试用英语和中文回复时遇到了一个错误。我使用了一些缩写（如 QE2.0、TTL 等），但被告知正文内容不清晰。 请参见下图： 是否是因为语法问题……

---

## [部分格式显示错误且未读计数不正确，可能仅影响一位用户](https://meta.discourse.org/t/partial-format-display-and-incorrect-unread-count-for-perhaps-only-one-user/151245)

<div class="topic-metadata">

**Author:** [@Cardinalflyer](https://meta.discourse.org/u/Cardinalflyer)\
**回复:** 6\
**最近更新：:** [2020 年5 月 18 日 02:01 UTC](https://meta.discourse.org/t/partial-format-display-and-incorrect-unread-count-for-perhaps-only-one-user/151245 "2020-05-18T02:01:05Z")

</div>

我至少有一位用户收到的未读消息计数完全错误。 \[编辑：此外，他的格式与我的/正常格式不同！！\] 他发送了一张截图： 可能导致这种情况的原因是什么？任何……

---

## [如何翻译组名称](https://meta.discourse.org/t/how-to-translate-the-group-names/151776)

<div class="topic-metadata">

**Author:** [@aksoforever](https://meta.discourse.org/u/aksoforever)\
**回复:** 0\
**最近更新：:** [2020 年5 月 17 日 23:46 UTC](https://meta.discourse.org/t/how-to-translate-the-group-names/151776 "2020-05-17T23:46:48Z")

</div>

我该怎么做？为了实现双语组名，就像默认创建的管理员和工作人员组一样，可以有一个语言版本。

---

## [重置主题日期和编辑计数？](https://meta.discourse.org/t/reset-topic-dates-and-edit-counter/151682)

<div class="topic-metadata">

**Author:** [@satonotdead](https://meta.discourse.org/u/satonotdead)\
**回复:** 3\
**最近更新：:** [2020 年5 月 17 日 23:07 UTC](https://meta.discourse.org/t/reset-topic-dates-and-edit-counter/151682 "2020-05-17T23:07:17Z")

</div>

是否有选项可以重置编辑计数器并重新加载帖子的发布日期？ 我想在几周测试之前将论坛恢复到此前的状态。 谢谢！

---

## [无法在 Ubuntu 18.04 上卸载](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770)

<div class="topic-metadata">

**Author:** [@online\_0227](https://meta.discourse.org/u/online_0227)\
**回复:** 3\
**最近更新：:** [2020 年5 月 17 日 21:11 UTC](https://meta.discourse.org/t/cant-uninstall-on-ubuntu-18-04/151770 "2020-05-17T21:11:44Z")

</div>

我按照这里的指南操作： 现在我想将其连同数据库一起移除，并可能重新安装以获得一个干净的版本。 像这样的命令： . /launcher stop app 它没有起作用。 这是 Discourse 的文件结构：

---

## [如何在多站点环境中配置 S3 上传？](https://meta.discourse.org/t/how-to-configure-s3-uploads-in-a-multi-site-environment/151678)

<div class="topic-metadata">

**Author:** [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**回复:** 2\
**最近更新：:** [2020 年5 月 17 日 18:46 UTC](https://meta.discourse.org/t/how-to-configure-s3-uploads-in-a-multi-site-environment/151678 "2020-05-17T18:46:18Z")

</div>

根据我的理解，这应该通过环境变量来完成，但我心中产生了几个问题。 如何为所有站点迁移到 S3？我的理解是，按站点迁移应该是 r…

---

## [备份过程中损坏的项目指针](https://meta.discourse.org/t/corrupted-item-pointer-during-backup-process/151680)

<div class="topic-metadata">

**Author:** [@RikoDEV](https://meta.discourse.org/u/RikoDEV)\
**回复:** 6\
**最近更新：:** [2020 年5 月 17 日 16:55 UTC](https://meta.discourse.org/t/corrupted-item-pointer-during-backup-process/151680 "2020-05-17T16:55:59Z")

</div>

Discourse 版本：2.5.0.beta4 (e81a4048e3) 尝试备份时，我收到以下错误。 \[2020-05-16 10:09:19\] pg\_dump：正在处理表 "public.reviewable\_claimed\_topics" 的数据 \[2020-05-16 10:09:19\] pg\_dump：…

---

## [\[付费\] 为自托管实例配置 SSO](https://meta.discourse.org/t/paid-setup-sso-for-self-hosted-instance/151067)

<div class="topic-metadata">

**Author:** [@julien\_c](https://meta.discourse.org/u/julien_c)\
**回复:** 1\
**最近更新：:** [2020 年5 月 17 日 16:55 UTC](https://meta.discourse.org/t/paid-setup-sso-for-self-hosted-instance/151067 "2020-05-17T16:55:08Z")

</div>

您好， 在 Hugging Face，我们构建用于机器学习和自然语言处理的开源软件，这培育了一个相当庞大的用户社区。 我们一直在考虑集成 Discourse 论坛，以……

---

## [\[付费\] 需要帮助集成 Wordpress 和 Discourse](https://meta.discourse.org/t/paid-need-help-in-integrating-wordpress-and-discourse/151134)

<div class="topic-metadata">

**Author:** [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)\
**回复:** 2\
**最近更新：:** [2020 年5 月 17 日 16:53 UTC](https://meta.discourse.org/t/paid-need-help-in-integrating-wordpress-and-discourse/151134 "2020-05-17T16:53:46Z")

</div>

详情见此处：https://meta.discourse.org/t/syncing-woocommerce-memberships-with-discourse-groups-when-discourse-is-the-sso-provider/118485/8

---

## [如何更改 Discourse 顶部横幅换行？](https://meta.discourse.org/t/how-to-change-discourse-top-banner-wrap/151742)

<div class="topic-metadata">

**Author:** [@Phúc\_Nguyễn\_Hồng](https://meta.discourse.org/u/Ph%C3%BAc_Nguy%E1%BB%85n_H%E1%BB%93ng)\
**回复:** 2\
**最近更新：:** [2020 年5 月 17 日 13:06 UTC](https://meta.discourse.org/t/how-to-change-discourse-top-banner-wrap/151742 "2020-05-17T13:06:14Z")

</div>

如何让这个顶部横幅更宽？ 谢谢大家！

---

## [日期应显示时间而非“今天”，适用于时间格式](https://meta.discourse.org/t/date-should-show-the-time-instead-of-today-for-time-formats/151435)

<div class="topic-metadata">

**Author:** [@jessicah](https://meta.discourse.org/u/jessicah)\
**回复:** 4\
**最近更新：:** [2020 年5 月 17 日 11:24 UTC](https://meta.discourse.org/t/date-should-show-the-time-instead-of-today-for-time-formats/151435 "2020-05-17T11:24:53Z")

</div>

当使用特定时间格式的日期（例如“LT”或“LTS”）输入时，Discourse 应显示本地时间，而不是字符串“今天”；或者显示“今天”加上本地时间。 例如，7:31 AM（UTC）当前显示为

---

## [数据探索器按年求平均值？](https://meta.discourse.org/t/data-explorer-averages-by-year/150424)

<div class="topic-metadata">

**Author:** [@hhlp](https://meta.discourse.org/u/hhlp)\
**回复:** 6\
**最近更新：:** [2020 年5 月 17 日 08:58 UTC](https://meta.discourse.org/t/data-explorer-averages-by-year/150424 "2020-05-17T08:58:46Z")

</div>

我需要创建这个数据探索器 SQL 查询： 我需要按年份进行请求。例如输入 2019-01-01 至 2019-12-31。 按类别（主题和帖子）统计回复数量。 年度热门标签。 平均新增数量 …

---

## [Generating User Api Keys with REST API](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916)

<div class="topic-metadata">

**Author:** [@Umer\_Mirza](https://meta.discourse.org/u/Umer_Mirza)\
**回复:** 20\
**最近更新：:** [2018 年4 月 8 日 23:49 UTC](https://meta.discourse.org/t/generating-user-api-keys-with-rest-api/61916 "2018-04-08T23:49:47Z")

</div>

Hi I am trying to generate User api keys. I know I can do it from admin dashboard. But instead of there I want to generate by making REST calls. I am following this post User API keys specification I am getting error “…

---

## [插件重建时出现间歇性解析错误](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727)

<div class="topic-metadata">

**Author:** [@Ghan](https://meta.discourse.org/u/Ghan)\
**回复:** 4\
**最近更新：:** [2020 年5 月 17 日 06:09 UTC](https://meta.discourse.org/t/intermittent-parse-error-on-plugin-rebuild/151727 "2020-05-17T06:09:33Z")

</div>

在开发 bbcode 插件时，我们发现添加的某个 JS 文件出现了错误。此错误仅在更新插件或重建容器时出现，但并非每次都会发生。如果我上…

---

## [Discourse 设置与成功的 API 调用](https://meta.discourse.org/t/discourse-settings-and-successful-api-calls/151703)

<div class="topic-metadata">

**Author:** [@ryan\_m](https://meta.discourse.org/u/ryan_m)\
**回复:** 2\
**最近更新：:** [2020 年5 月 16 日 23:20 UTC](https://meta.discourse.org/t/discourse-settings-and-successful-api-calls/151703 "2020-05-16T23:20:24Z")

</div>

我有一个作为 WordPress SSO 客户端运行的 Discourse 站点。我在 WordPress 上有一个自定义用户个人资料。我希望尽可能锁定 Discourse 端的重复设置。我的 PHP 开发人员已实现了 API 客户端…

---

## [移除不活跃成员 - 信任等级 1](https://meta.discourse.org/t/removing-inactive-members-trust-level-1/151684)

<div class="topic-metadata">

**Author:** [@GI-Joe](https://meta.discourse.org/u/GI-Joe)\
**回复:** 1\
**最近更新：:** [2020 年5 月 16 日 23:18 UTC](https://meta.discourse.org/t/removing-inactive-members-trust-level-1/151684 "2020-05-16T23:18:09Z")

</div>

你好 我们的社区是从 vBulletin 论坛导入的。所有成员都被标记或迁移至信任等级 1，即使有很大比例的用户在迁移后从未访问过该站点。 清理不活跃用户并非完...

---

## [在 localhost 上嵌入评论组件导致 FrozenError](https://meta.discourse.org/t/embedding-comments-widget-on-localhost-causes-frozenerror/151722)

<div class="topic-metadata">

**Author:** [@Dev\_Singh](https://meta.discourse.org/u/Dev_Singh)\
**回复:** 1\
**最近更新：:** [2020 年5 月 16 日 23:10 UTC](https://meta.discourse.org/t/embedding-comments-widget-on-localhost-causes-frozenerror/151722 "2020-05-16T23:10:33Z")

</div>

我有一个运行在 localhost:5000 的 Rails 站点，以及一个运行在 localhost:3000 的本地 Discourse 服务器。我想在文章（在我的案例中是 Rails 资源）上启用评论功能，因此我已在 … 中设置了可嵌入的主机。

---

## [排序主题 - 链接如何工作？](https://meta.discourse.org/t/ordering-topics-how-do-the-links-work/151294)

<div class="topic-metadata">

**Author:** [@nathank](https://meta.discourse.org/u/nathank)\
**回复:** 5\
**最近更新：:** [2020 年5 月 16 日 22:05 UTC](https://meta.discourse.org/t/ordering-topics-how-do-the-links-work/151294 "2020-05-16T22:05:40Z")

</div>

我试图降低我们 /latest 视图中一个特别繁忙且可见度很高的分类的显著性，因为它正在劝退许多新加入论坛的用户，而这些用户主要是为了访问某个私密分类才加入的。我仍然希望他们能看到/了解这个繁忙的分类，但不要被其中大量的主题和回复流所压倒。 您有什么明智的建议吗？我知道可以这样做，但似乎都不够理想： 移除对该分类的访问权限 不好，我需要让他们获得一些接触机会，尤其是当他们被@提及的时候。 为所有这些用户静音该繁忙分类 太激…

---

## [已登出个人资料链接访问被拒绝](https://meta.discourse.org/t/access-denied-on-logged-out-profile-link/151714)

<div class="topic-metadata">

**Author:** [@maiki](https://meta.discourse.org/u/maiki)\
**回复:** 0\
**最近更新：:** [2020 年5 月 16 日 20:22 UTC](https://meta.discourse.org/t/access-denied-on-logged-out-profile-link/151714 "2020-05-16T20:22:57Z")

</div>

我的个人资料页面位于 https://talkgroup.xyz/u/maiki/activity，其中包含指向我的投票记录的链接： 但该链接受访问控制： :( 访问被拒绝 在尝试加载 /topics/voted-by/maiki.json 时发生错误。 出错了。 我已 …

---

## [如何在 Discourse 中插入广告（非 AdSense）](https://meta.discourse.org/t/how-insert-ads-in-my-discourse-not-adsense/149237)

<div class="topic-metadata">

**Author:** [@BishopV](https://meta.discourse.org/u/BishopV)\
**回复:** 1\
**最近更新：:** [2020 年5 月 16 日 19:23 UTC](https://meta.discourse.org/t/how-insert-ads-in-my-discourse-not-adsense/149237 "2020-05-16T19:23:55Z")

</div>

最近我决定在我的 Discourse 论坛中插入一些广告以获取额外收入，因为我的网站无法接入 Google AdSense。后来我找到了一些替代的广告发布平台，如 JuiceAds，但我想知道如何插入……

---

## [需要一点帮助来设置主题和其他项目](https://meta.discourse.org/t/need-a-little-help-getting-theme-and-other-items-setup/80265)

<div class="topic-metadata">

**Author:** [@SouperC](https://meta.discourse.org/u/SouperC)\
**回复:** 1\
**最近更新：:** [2018 年2 月 10 日 17:33 UTC](https://meta.discourse.org/t/need-a-little-help-getting-theme-and-other-items-setup/80265 "2018-02-10T17:33:17Z")

</div>

我自己尝试了几次，但总是弄坏了列表中的某一项，而且我不完全理解子主题在这里是如何/在哪里起作用的。例如，我缺少一个汉堡菜单…

---

## [在移动视图上将分类描述与分类标志并排重定位](https://meta.discourse.org/t/repositioning-the-category-description-alongside-category-logo-on-mobile-view/151500)

<div class="topic-metadata">

**Author:** [@Milo](https://meta.discourse.org/u/Milo)\
**回复:** 1\
**最近更新：:** [2020 年5 月 16 日 18:50 UTC](https://meta.discourse.org/t/repositioning-the-category-description-alongside-category-logo-on-mobile-view/151500 "2020-05-16T18:50:42Z")

</div>

你好 在移动设备上查看 Discourse（且启用了移动视图）时，类别描述未显示。我已修改 CSS，使其通过以下规则显示： .category-description { display: table-r…

---

## [垂直帖子编辑器 - 宽屏高分辨率友好的帖子创作](https://meta.discourse.org/t/vertical-post-editor-widescreen-high-res-friendly-post-composition/151640)

<div class="topic-metadata">

**Author:** [@internet\_cookie](https://meta.discourse.org/u/internet_cookie)\
**回复:** 3\
**最近更新：:** [2020 年5 月 16 日 15:25 UTC](https://meta.discourse.org/t/vertical-post-editor-widescreen-high-res-friendly-post-composition/151640 "2020-05-16T15:25:12Z")

</div>

在宽屏高分辨率显示器上，我拥有大量的水平空间，但垂直空间非常宝贵。我很希望能看到一个垂直方向的帖子编辑器，也许像这样： 采用垂直方向的编辑器后，导航将……

---

## [API 调用 discobot 时出现 500 错误](https://meta.discourse.org/t/500-error-with-discobot-on-api-call/151699)

<div class="topic-metadata">

**Author:** [@Schw\_ede](https://meta.discourse.org/u/Schw_ede)\
**回复:** 0\
**最近更新：:** [2020 年5 月 16 日 15:01 UTC](https://meta.discourse.org/t/500-error-with-discobot-on-api-call/151699 "2020-05-16T15:01:15Z")

</div>

嘿， 我在调用 API 获取论坛分类时遇到了问题。使用我的用户账号通过 curl 调用 API 一切正常，但使用系统用户和 discobot 用户时却返回 500 错误。我遗漏了什么……

---

## [Discourse 更新问题。请帮忙](https://meta.discourse.org/t/discourse-update-probs-help-please/151651)

<div class="topic-metadata">

**Author:** [@Vaughan](https://meta.discourse.org/u/Vaughan)\
**回复:** 5\
**最近更新：:** [2020 年5 月 16 日 14:45 UTC](https://meta.discourse.org/t/discourse-update-probs-help-please/151651 "2020-05-16T14:45:22Z")

</div>

大家好， 我是一家在线 Discourse 论坛的技术人员。不知何故（我也说不清具体原因），该论坛正在运行 2.5.0 beta 3 测试版。 论坛的拥有者不太懂技术，我认为他一直在……

---

## [帖子下方链接被屏蔽](https://meta.discourse.org/t/links-block-under-post/151688)

<div class="topic-metadata">

**Author:** [@Varhall](https://meta.discourse.org/u/Varhall)\
**回复:** 1\
**最近更新：:** [2020 年5 月 16 日 12:36 UTC](https://meta.discourse.org/t/links-block-under-post/151688 "2020-05-16T12:36:03Z")

</div>

你好。请告诉我如何在帖子下方添加一个包含链接的区块。这是插件功能还是 Discourse 的默认功能？谢谢。

---

## [在主题页面上从头像悬停中移除用户名](https://meta.discourse.org/t/remove-user-name-from-avatar-hover-on-topic-page/151647)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回复:** 2\
**最近更新：:** [2020 年5 月 16 日 12:34 UTC](https://meta.discourse.org/t/remove-user-name-from-avatar-hover-on-topic-page/151647 "2020-05-16T12:34:32Z")

</div>

我想隐藏鼠标悬停在头像上时出现的用户真实姓名。显而易见的解决方案是禁用真实姓名显示，但管理员希望能看到真实姓名（而其他任何人都不能看到）。

---

## [如何检查用户使用的注册方法？](https://meta.discourse.org/t/how-to-check-which-method-of-registration-user-have-used/151574)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**回复:** 4\
**最近更新：:** [2020 年5 月 16 日 12:32 UTC](https://meta.discourse.org/t/how-to-check-which-method-of-registration-user-have-used/151574 "2020-05-16T12:32:32Z")

</div>

由于我检测到一个 bug（通过非电子邮件方式确认的用户，如果未确认则会被删除），请帮我找出如何检查用户是通过哪种方式注册的？ 需要知道谁创建了账户……

---

## [介绍您的 Discourse 服务器的区域](https://meta.discourse.org/t/an-area-to-introduce-your-discourse-server/151685)

<div class="topic-metadata">

**Author:** [@hjalali](https://meta.discourse.org/u/hjalali)\
**回复:** 2\
**最近更新：:** [2020 年5 月 16 日 11:39 UTC](https://meta.discourse.org/t/an-area-to-introduce-your-discourse-server/151685 "2020-05-16T11:39:54Z")

</div>

我个人非常希望看到一个类别或子版块，让您能够以结构化的方式介绍您的 Discourse 服务器。 我也明白该区域容易被滥用和 spam，但如果有一个良好的设置，我认…

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

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