# Latest

**URL:** https://meta.discourse.org/latest.md?page=1293

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 1294

---

## [私人消息通知中的用户旅程问题](https://meta.discourse.org/t/user-journey-issue-from-private-message-notifications/135079)

<div class="topic-metadata">

**Author:** [@Priscilla8](https://meta.discourse.org/u/Priscilla8)\
**回覆:** 10\
**Last updated:** [2020年一月7日 16:41 UTC](https://meta.discourse.org/t/user-journey-issue-from-private-message-notifications/135079 "2020-01-07T16:41:08Z")

</div>

如果用户已退出登录并尝试访问受限页面的链接（例如来自电子邮件通知的链接，如私人消息或已关闭的类别），他们将看到一个显示“哎呀，该…的页面。

---

## [用于 Composer 的 JavaScript Hook](https://meta.discourse.org/t/javascript-hook-for-composer/137967)

<div class="topic-metadata">

**Author:** [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)\
**回覆:** 4\
**Last updated:** [2020年一月7日 15:51 UTC](https://meta.discourse.org/t/javascript-hook-for-composer/137967 "2020-01-07T15:51:30Z")

</div>

您好， 我之前发布的一个帖子没有收到任何回复，可能是因为请求过于具体。因此，我再次尝试：我想将功能挂钩到 Compose 编辑器中，以便当用户输入特定的字符序列时……

---

## [仅对登录用户可见的标记主题](https://meta.discourse.org/t/mark-topic-only-visible-for-logged-in-user/137971)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 1\
**Last updated:** [2020年一月7日 15:49 UTC](https://meta.discourse.org/t/mark-topic-only-visible-for-logged-in-user/137971 "2020-01-07T15:49:37Z")

</div>

我有一个公开论坛，所有人都可以阅读所有主题。我想知道是否有一种方法可以将某个主题标记为仅对登录用户可见。例如，所有用户可以看到第一个帖子或第一个帖子的50%，但要阅读全文…

---

## [如何从命令行强制授予所有徽章？](https://meta.discourse.org/t/how-to-force-grant-all-badges-from-command-line/137960)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 18\
**Last updated:** [2020年一月7日 13:57 UTC](https://meta.discourse.org/t/how-to-force-grant-all-badges-from-command-line/137960 "2020-01-07T13:57:50Z")

</div>

徽章每天授予一次。 是否有方法通过命令行安排或强制“立即”执行授予过程？

---

## [iOS：在主题列表中，“返回”会跳转到错误的位置](https://meta.discourse.org/t/ios-back-goes-to-wrong-position-in-topics-list/136770)

<div class="topic-metadata">

**Author:** [@bartv](https://meta.discourse.org/u/bartv)\
**回覆:** 16\
**Last updated:** [2020年一月7日 11:49 UTC](https://meta.discourse.org/t/ios-back-goes-to-wrong-position-in-topics-list/136770 "2020-01-07T11:49:46Z")

</div>

Safari/iOS（iPhone 8，最新 iOS 版本）中的“返回”功能不可靠；从话题列表进入话题后，通常无法返回到话题列表中的正确位置。在我自己的论坛上，这……

---

## [\[付费\] 自定义主题工作](https://meta.discourse.org/t/paid-custom-theme-work/137948)

<div class="topic-metadata">

**Author:** [@CodySullivan](https://meta.discourse.org/u/CodySullivan)\
**回覆:** 1\
**Last updated:** [2020年一月7日 10:15 UTC](https://meta.discourse.org/t/paid-custom-theme-work/137948 "2020-01-07T10:15:14Z")

</div>

您希望完成什么工作？ 需要一个类似于 https://forum.sweat.com 的自定义主题。安装已就绪并正在运行，但尚未向我们的受众发布，因此目前是一个全新的起点。如果您能协助解决单点登录（SSO）相关的问题，将额外加分。

---

## [如何在“顶级推荐来源”报告中包含更多条目](https://meta.discourse.org/t/how-to-include-more-entries-in-the-top-referrers-report/135346)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 7\
**Last updated:** [2020年一月7日 10:09 UTC](https://meta.discourse.org/t/how-to-include-more-entries-in-the-top-referrers-report/135346 "2020-01-07T10:09:13Z")

</div>

“顶级引流者”报告仅显示前 10 名用户： /admin/reports/top\_referrers 我是否可以以任何方式自定义表格中的条目数量？

---

## [帖子时间错误](https://meta.discourse.org/t/wrong-time-in-posts/137924)

<div class="topic-metadata">

**Author:** [@RobMa](https://meta.discourse.org/u/RobMa)\
**回覆:** 4\
**Last updated:** [2020年一月7日 03:45 UTC](https://meta.discourse.org/t/wrong-time-in-posts/137924 "2020-01-07T03:45:39Z")

</div>

我的论坛根据客户端时钟显示帖子的年龄，因此会出现错误。例如，如果帖子是在下午 5 点发布的，而我在晚上 9:10 查看它，但我的设备时钟显示为下午 5:10，论坛会显示该帖子……

---

## [将 Discourse 升级到 Rails 6](https://meta.discourse.org/t/upgrading-discourse-to-rails-6/128004)

<div class="topic-metadata">

**Author:** [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)\
**回覆:** 17\
**Last updated:** [2020年一月7日 01:38 UTC](https://meta.discourse.org/t/upgrading-discourse-to-rails-6/128004 "2020-01-07T01:38:59Z")

</div>

Hi Team, Rails 6.0.0 was released 25 days ago so I think it is a time to update Discourse :slight\_smile: There were a few steps I needed to do to make that work. Fix broken specs Add empty method trigger\_transaction…

---

## [无法恢复，因为索引损坏（附处理损坏索引的一些线索）](https://meta.discourse.org/t/cant-restore-due-to-corrupt-indexes-with-some-clues-on-how-to-deal-with-corrupt-indexes/137400)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 12\
**Last updated:** [2020年一月6日 22:04 UTC](https://meta.discourse.org/t/cant-restore-due-to-corrupt-indexes-with-some-clues-on-how-to-deal-with-corrupt-indexes/137400 "2020-01-06T22:04:45Z")

</div>

此备份因以下错误多次失败： 错误：无法创建唯一索引“index\_incoming\_referers\_on\_path\_and\_incoming\_domain\_id” 详情：键 (path, incoming\_domain\_id)=(/@dataandme, 41) 重复…

---

## [Alternate home page 'digest' layout](https://meta.discourse.org/t/alternate-home-page-digest-layout/33854)

<div class="topic-metadata">

**Author:** [@trudat](https://meta.discourse.org/u/trudat)\
**回覆:** 11\
**Last updated:** [2020年一月6日 21:39 UTC](https://meta.discourse.org/t/alternate-home-page-digest-layout/33854 "2020-01-06T21:39:23Z")

</div>

I am proposing the following design concept as an alternative to the current home page or the current /category page. This design is inspired by Google News and other sites with digest-ee layouts. I’ll quickly describe t…

---

## [移除现有链接中的 nofollow 属性](https://meta.discourse.org/t/removing-nofollow-from-existing-links/137692)

<div class="topic-metadata">

**Author:** [@bvdrie72](https://meta.discourse.org/u/bvdrie72)\
**回覆:** 2\
**Last updated:** [2020年一月6日 16:44 UTC](https://meta.discourse.org/t/removing-nofollow-from-existing-links/137692 "2020-01-06T16:44:58Z")

</div>

我运行的是 2.3.5-dirty 版本。我最近向“排除 nofollow 链接”列表中添加了新域名。 使用该域名创建的任何新链接都能按预期工作，但任何现有链接仍显示为 nofollow。 我该怎么办…

---

## [Help to merge forum from Kunena](https://meta.discourse.org/t/help-to-merge-forum-from-kunena/73611)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 6\
**Last updated:** [2020年一月6日 20:14 UTC](https://meta.discourse.org/t/help-to-merge-forum-from-kunena/73611 "2020-01-06T20:14:57Z")

</div>

I have been traveling the long forum road. For more then 15 years I have been running a community for medical students in Denmark @ studmed.dk For the first years I have been using phpBB2. Then in I did migrate to Jooml…

---

## [使用 WordPress/Discourse](https://meta.discourse.org/t/using-wordpress-discourse/137775)

<div class="topic-metadata">

**Author:** [@Damian\_Boon](https://meta.discourse.org/u/Damian_Boon)\
**回覆:** 11\
**Last updated:** [2020年一月6日 19:52 UTC](https://meta.discourse.org/t/using-wordpress-discourse/137775 "2020-01-06T19:52:36Z")

</div>

我们将在一个新的 WordPress 项目中采用“托管式 Discourse”，因为它确实非常出色。我们正在熟悉它，并即将安装插件。不过，我们有一些问题： 如果访客 …

---

## [创建页面背景渐变叠加，使讨论区域为白色](https://meta.discourse.org/t/create-background-gradient-overlay-on-page-making-the-discussion-area-white/135879)

<div class="topic-metadata">

**Author:** [@jord8on](https://meta.discourse.org/u/jord8on)\
**回覆:** 4\
**Last updated:** [2020年一月6日 16:14 UTC](https://meta.discourse.org/t/create-background-gradient-overlay-on-page-making-the-discussion-area-white/135879 "2020-01-06T16:14:29Z")

</div>

我已在主题 CSS 中添加了一个细微的 .svg 背景图案（会重复），使用的代码如下： body { background:url(https://forums.pickleballist.com/uploads/default/original/1X/b7df60bb8a3fd1584f393dee365865ca8…

---

## [+新建 Wiki 按钮](https://meta.discourse.org/t/new-wiki-button/137859)

<div class="topic-metadata">

**Author:** [@tpetrov](https://meta.discourse.org/u/tpetrov)\
**回覆:** 6\
**Last updated:** [2020年一月6日 16:00 UTC](https://meta.discourse.org/t/new-wiki-button/137859 "2020-01-06T16:00:04Z")

</div>

我想创建一个按钮，如果用户拥有 wiki 权限，则将其预设为新主题为 wiki 形式。这可行吗？是否有可用的 URL 参数来实现这一点？

---

## [创建分类时始终出现错误 500](https://meta.discourse.org/t/always-get-error-500-when-try-to-create-category/137296)

<div class="topic-metadata">

**Author:** [@paultaylor](https://meta.discourse.org/u/paultaylor)\
**回覆:** 5\
**Last updated:** [2020年一月6日 13:34 UTC](https://meta.discourse.org/t/always-get-error-500-when-try-to-create-category/137296 "2020-01-06T13:34:53Z")

</div>

我尝试使用 API 创建一个类别，但总是因错误 500 而失败，无论是使用以下 curl 命令： \`\`\`bash curl -s -X POST --data "name=Fred&color=0xffffff&text\_color=0xbbbbbb&api\_key=\*API\_USER\_KEY\*&api\_username=\*USER\_NAME\*" https://community.jth… \`\`\`

---

## [通过 API PUT 请求更新帖子](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252)

<div class="topic-metadata">

**Author:** [@alank](https://meta.discourse.org/u/alank)\
**回覆:** 6\
**Last updated:** [2023年十月31日 20:29 UTC](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252 "2023-10-31T20:29:56Z")

</div>

为了确认一下，Discourse API 文档中提到了这种……结构…… { "post\[raw\]": "string", "post\[raw\_old\]": "string", "post\[edit\_reason\]": "string", "post\[cooked\]": "string" } 在我尝试之前，这……

---

## [在 Discourse 帖子中嵌入 JavaScript？](https://meta.discourse.org/t/embed-javascript-in-a-discourse-post/137845)

<div class="topic-metadata">

**Author:** [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)\
**回覆:** 0\
**Last updated:** [2020年一月6日 05:16 UTC](https://meta.discourse.org/t/embed-javascript-in-a-discourse-post/137845 "2020-01-06T05:16:50Z")

</div>

是否可以在 Discourse 帖子中嵌入 JavaScript？我出于遗留原因，希望在一个 Discourse 帖子中展示我的 Knack 在线数据库应用。Knack 提示“复制并粘贴以下代码片段……”

---

## [Rake uploads:migrate\_to\_s3 错误](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-error/137806)

<div class="topic-metadata">

**Author:** [@wanghaisheng](https://meta.discourse.org/u/wanghaisheng)\
**回覆:** 8\
**Last updated:** [2020年一月6日 09:06 UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-error/137806 "2020-01-06T09:06:41Z")

</div>

2.4.0.beta9 discourse 最新发行版 +35 \> rake uploads:migrate\_to\_s3 rake 中止！ NoMethodError: 未定义方法 \`name\` 给 :vapid\_public\_key:Symbol /var/www/discourse/plugins/procourse-custom-homepage/lib/dl\_custom\_…

---

## [\[招聘\] 构建 iOS 应用](https://meta.discourse.org/t/hiring-build-an-ios-app/136548)

<div class="topic-metadata">

**Author:** [@nexo](https://meta.discourse.org/u/nexo)\
**回覆:** 9\
**Last updated:** [2020年一月6日 07:56 UTC](https://meta.discourse.org/t/hiring-build-an-ios-app/136548 "2020-01-06T07:56:10Z")

</div>

您希望完成什么工作？ 我们正在聘请一位经验丰富的 Discourse 开发者，仅根据本指南：使用 OneSignal 推送通知的白名单 Discourse 应用，从我们的网站构建一个 iOS 应用（我们将提供开发...

---

## [避免点击回复按钮](https://meta.discourse.org/t/avoid-the-reply-button/137850)

<div class="topic-metadata">

**Author:** [@Gjithcka\_al](https://meta.discourse.org/u/Gjithcka_al)\
**回覆:** 2\
**Last updated:** [2020年一月6日 07:34 UTC](https://meta.discourse.org/t/avoid-the-reply-button/137850 "2020-01-06T07:34:14Z")

</div>

您好，我想请问是否可以在不点击“回复”按钮的情况下回复主题？即无需点击回复按钮，直接出现“写回复…”的输入框。我保留了一个 GitHub 上的示例作为参考。谢谢。

---

## [在设置实时网站时临时屏蔽 Google 爬虫？](https://meta.discourse.org/t/temporarily-block-google-crawler-while-setting-up-live-site/137847)

<div class="topic-metadata">

**Author:** [@donovan](https://meta.discourse.org/u/donovan)\
**回覆:** 3\
**Last updated:** [2020年一月6日 07:33 UTC](https://meta.discourse.org/t/temporarily-block-google-crawler-while-setting-up-live-site/137847 "2020-01-06T07:33:30Z")

</div>

我确定某个地方肯定有相关设置，但找不到。 仍在实施从旧论坛到 Discourse 的重定向。有没有办法暂时阻止 Google 抓取，以避免重复内容？

---

## [完全绕过/login：仅支持一种OAuth方法“Auth0”](https://meta.discourse.org/t/bypass-login-completely-only-one-oauth-method-auth0/137733)

<div class="topic-metadata">

**Author:** [@The\_Sunny](https://meta.discourse.org/u/The_Sunny)\
**回覆:** 1\
**Last updated:** [2020年一月4日 08:47 UTC](https://meta.discourse.org/t/bypass-login-completely-only-one-oauth-method-auth0/137733 "2020-01-04T08:47:48Z")

</div>

您希望完成什么操作？ 我们只有一种 OAuth 方法。 我希望使用 Auth0 和 oauth2-basic 插件创建一个类似单点登录（SSO）的体验。我希望能直接引导用户进行身份验证，而无需先将他们路由到…

---

## [Popup warning for NSFW category](https://meta.discourse.org/t/popup-warning-for-nsfw-category/21296)

<div class="topic-metadata">

**Author:** [@ximi](https://meta.discourse.org/u/ximi)\
**回覆:** 5\
**Last updated:** [2020年一月6日 05:30 UTC](https://meta.discourse.org/t/popup-warning-for-nsfw-category/21296 "2020-01-06T05:30:52Z")

</div>

Suppose we have a category for NSFW content, is a popup warning before entry easy to implement? Something that tells the user he/she is entering NSFW category, something like: “The content of this section is for mature …

---

## [\[付费\] 将 PunBB 论坛迁移至 Discourse](https://meta.discourse.org/t/paid-punbb-forum-to-discourse/137805)

<div class="topic-metadata">

**Author:** [@donovan](https://meta.discourse.org/u/donovan)\
**回覆:** 14\
**Last updated:** [2020年一月5日 23:01 UTC](https://meta.discourse.org/t/paid-punbb-forum-to-discourse/137805 "2020-01-05T23:01:35Z")

</div>

您希望完成什么工作？ 将大型 PunBB 论坛（约 45,000 篇帖子，3,500 个主题）迁移至 Discourse，并创建旧 URL（带有冗长的查询字符串）到 Discourse URL 的重定向映射。 您希望何时完成？ 尽快。 您的……

---

## [按钮：将主题中的任何帖子链接到首帖（仅对主题所有者显示）](https://meta.discourse.org/t/button-to-link-any-post-in-a-topic-to-the-first-post-shown-only-for-topic-owner/137036)

<div class="topic-metadata">

**Author:** [@gingerman](https://meta.discourse.org/u/gingerman)\
**回覆:** 3\
**Last updated:** [2020年一月5日 22:46 UTC](https://meta.discourse.org/t/button-to-link-any-post-in-a-topic-to-the-first-post-shown-only-for-topic-owner/137036 "2020-01-05T22:46:18Z")

</div>

首先，祝大家圣诞快乐！ 问题 关于新功能/插件/主题的发布公告类话题常遇到此问题。 通常，此类公告话题的首帖会包含所有功能的说明（根据…

---

## [匿名用户用户名可在引号中查看](https://meta.discourse.org/t/username-of-anon-user-can-be-seen-in-quotes/137770)

<div class="topic-metadata">

**Author:** [@ondrej](https://meta.discourse.org/u/ondrej)\
**回覆:** 3\
**Last updated:** [2020年一月5日 16:44 UTC](https://meta.discourse.org/t/username-of-anon-user-can-be-seen-in-quotes/137770 "2020-01-05T16:44:13Z")

</div>

您好， 我正在浏览论坛的一些旧帖子，发现有一位用户已被匿名化处理。然而，在引用中仍然可以看到其之前的用户名。图片展示了具体情况。这是否是预期行为？ 谢谢 …

---

## [如何使用 Discourse API 通过 ID 获取子类别？](https://meta.discourse.org/t/how-do-i-get-subcategory-by-id-using-discourse-api/137790)

<div class="topic-metadata">

**Author:** [@vicky](https://meta.discourse.org/u/vicky)\
**回覆:** 2\
**Last updated:** [2020年一月5日 18:29 UTC](https://meta.discourse.org/t/how-do-i-get-subcategory-by-id-using-discourse-api/137790 "2020-01-05T18:29:56Z")

</div>

当我拉取 /categories.json 时，它仅显示所有父类别及其子类别（如有），这些子类别位于 "subcategory\_ids" \[\] 数组中。如何通过其 ID 获取子类别的详细信息？ 是否有类似的 API 可以获取详细信息……

---

## [使注销功能更易访问](https://meta.discourse.org/t/making-logout-more-accessible/137639)

<div class="topic-metadata">

**Author:** [@rogerco](https://meta.discourse.org/u/rogerco)\
**回覆:** 9\
**Last updated:** [2020年一月5日 16:15 UTC](https://meta.discourse.org/t/making-logout-more-accessible/137639 "2020-01-05T16:15:28Z")

</div>

自使用 Discourse 的第一天起，一个小小的烦人之事就是：与大多数其他系统相比，您需要多点击一次才能找到“登出”链接。 右上角头像 - 用户名 - 登出。大多数其他平台显示为“登…

[上一頁](https://meta.discourse.org/latest.md?page=1292)

[下一頁](https://meta.discourse.org/latest.md?page=1294)
