# Latest

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

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

**Page:** 1215

---

## [通过插件向帖子管理菜单添加功能时遇到问题](https://meta.discourse.org/t/problem-adding-to-post-admin-menu-via-plugin/154913)

<div class="topic-metadata">

**Author:** [@LeoDavidson](https://meta.discourse.org/u/LeoDavidson)\
**回复:** 0\
**最近更新：:** [2020 年6 月 15 日 18:15 UTC](https://meta.discourse.org/t/problem-adding-to-post-admin-menu-via-plugin/154913 "2020-06-15T18:15:43Z")

</div>

我卡在尝试更新我的插件（Bump Reset 插件 - 已添加注释以帮助新开发者）以使其在当前版本的 Discourse 中显示正确。 相关文件位于： discourse-reset-bump/assets/javascripts/…

---

## [通过 CSV 上传包含特殊字符的标签失败](https://meta.discourse.org/t/tag-upload-with-special-characters-via-csv-is-failing/154821)

<div class="topic-metadata">

**Author:** [@krishraov](https://meta.discourse.org/u/krishraov)\
**回复:** 13\
**最近更新：:** [2020 年6 月 15 日 17:44 UTC](https://meta.discourse.org/t/tag-upload-with-special-characters-via-csv-is-failing/154821 "2020-06-15T17:44:43Z")

</div>

您好，我尝试上传一个包含大量标签的 CSV 文件，但每次都会收到错误提示：“抱歉，上传该文件时发生错误。请重试。” 管理面板中的日志显示 Mess…

---

## [查询如何创建一个可见但无法发布帖子的类别](https://meta.discourse.org/t/query-on-how-to-create-a-category-which-can-be-seen-but-posts-cant/81546)

<div class="topic-metadata">

**Author:** [@RCheesley](https://meta.discourse.org/u/RCheesley)\
**回复:** 6\
**最近更新：:** [2018 年2 月 27 日 13:00 UTC](https://meta.discourse.org/t/query-on-how-to-create-a-category-which-can-be-seen-but-posts-cant/81546 "2018-02-27T13:00:39Z")

</div>

大家好， 我想请问是否可以实现这样的分类：用户可以看到分类本身，但除非属于特定用户组，否则无法查看其中的帖子？ 使用场景是一个大型会员网站，其中包含多个 i…

---

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

<div class="topic-metadata">

**Author:** [@tnolin](https://meta.discourse.org/u/tnolin)\
**回复:** 0\
**最近更新：:** [2020 年6 月 15 日 11:26 UTC](https://meta.discourse.org/t/paid-custom-theme/154880 "2020-06-15T11:26:10Z")

</div>

您希望完成什么工作？ 为我们的即将推出的视频游戏打造品牌主题，布局和风格类似于 https://us.forums.blizzard.com/en/wow/，包括开发进度追踪器。 您需要在何时完成？ 接下来的两个月……

---

## [通过 Ruby 控制台批准新用户 - 20200613.042854](https://meta.discourse.org/t/approving-a-new-user-with-ruby-console-20200613-042854/154690)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**回复:** 2\
**最近更新：:** [2020 年6 月 15 日 07:49 UTC](https://meta.discourse.org/t/approving-a-new-user-with-ruby-console-20200613-042854/154690 "2020-06-15T07:49:53Z")

</div>

这在三月左右还能正常工作，现在由于某种原因失败了。 ReviewableUser.find\_by(target:user).perform(csmu, :approve\_user) NoMethodError: undefined method \`perform' for nil:NilClass user 和 csmu 是有效的对象…

---

## [如何在允许的主机中添加 Ngrok](https://meta.discourse.org/t/how-to-add-ngrok-to-allowed-hosts/144002)

<div class="topic-metadata">

**Author:** [@Mikitos](https://meta.discourse.org/u/Mikitos)\
**回复:** 2\
**最近更新：:** [2020 年6 月 15 日 05:06 UTC](https://meta.discourse.org/t/how-to-add-ngrok-to-allowed-hosts/144002 "2020-06-15T05:06:34Z")

</div>

目前正尝试通过 ngrok 连接到我的站点，但我不熟悉如何将其添加到 Discourse 的主机白名单中？ 我的安装基于此指南 https://meta.discourse.org/t/beginners-guide-to-ins…

---

## [Wiki 权限默认设置](https://meta.discourse.org/t/wiki-permission-defaults/154771)

<div class="topic-metadata">

**Author:** [@chaddyer](https://meta.discourse.org/u/chaddyer)\
**回复:** 2\
**最近更新：:** [2020 年6 月 15 日 03:18 UTC](https://meta.discourse.org/t/wiki-permission-defaults/154771 "2020-06-15T03:18:21Z")

</div>

首次参与社区创作。 正在考虑 Wiki 帖子和权限设置。默认设置与我预期的相反，因此我担心自己可能忽略了 Wiki 类帖子的某些运作机制。 默认 我的直觉…

---

## [Google Search Console 再次发出警告消息，提示缺少“itemListElement”](https://meta.discourse.org/t/warning-message-again-from-google-search-console-saying-there-is-no-itemlistelement/154256)

<div class="topic-metadata">

**Author:** [@nujabes](https://meta.discourse.org/u/nujabes)\
**回复:** 14\
**最近更新：:** [2020 年6 月 15 日 02:50 UTC](https://meta.discourse.org/t/warning-message-again-from-google-search-console-saying-there-is-no-itemlistelement/154256 "2020-06-15T02:50:43Z")

</div>

我收到了来自 Google 搜索控制台的警告消息，提示有 1,985 个页面缺少"itemListElement"。我的 Discourse 版本是 2.5.0.beta5。 有人告诉我 Discourse 的更新会解决这个问题，但并没有。 ……

---

## [构建自定义机器人](https://meta.discourse.org/t/building-a-custom-bot/154824)

<div class="topic-metadata">

**Author:** [@j127](https://meta.discourse.org/u/j127)\
**回复:** 2\
**最近更新：:** [2020 年6 月 14 日 21:58 UTC](https://meta.discourse.org/t/building-a-custom-bot/154824 "2020-06-14T21:58:40Z")

</div>

我一直在寻找一种方法，创建一个用户可以在公开话题中互动的自定义机器人。他们可以输入类似@botname 命令 参数1 参数2的内容，机器人会在该话题中回复请求……

---

## [波兰语区域设置问题](https://meta.discourse.org/t/polish-locale-problem/154794)

<div class="topic-metadata">

**Author:** [@fenio](https://meta.discourse.org/u/fenio)\
**回复:** 2\
**最近更新：:** [2020 年6 月 14 日 21:56 UTC](https://meta.discourse.org/t/polish-locale-problem/154794 "2020-06-14T21:56:31Z")

</div>

大家好， 我刚安装了 Discourse（2.5.0.beta7），并尝试使用波兰语。 但在每个页面的顶部，我都会看到以下错误： 无效格式：未捕获的语法错误，预期为“plural”或“select”，但实际为“l”……

---

## [SMTP 错误（Zoho）](https://meta.discourse.org/t/smtp-error-zoho/143666)

<div class="topic-metadata">

**Author:** [@MostafaXdev](https://meta.discourse.org/u/MostafaXdev)\
**回复:** 6\
**最近更新：:** [2020 年6 月 14 日 21:52 UTC](https://meta.discourse.org/t/smtp-error-zoho/143666 "2020-06-14T21:52:25Z")

</div>

大家好， 我将 SMTP 凭据更改为 Zoho，但无法发送邮件，并出现以下错误： 谢谢。

---

## [构建投票对话框未自动选择“结果”设置](https://meta.discourse.org/t/build-poll-dialog-doesnt-select-results-setting-automatically/150776)

<div class="topic-metadata">

**Author:** [@seanblue](https://meta.discourse.org/u/seanblue)\
**回复:** 6\
**最近更新：:** [2020 年6 月 14 日 21:40 UTC](https://meta.discourse.org/t/build-poll-dialog-doesnt-select-results-setting-automatically/150776 "2020-06-14T21:40:12Z")

</div>

“构建轮询”对话框在打开时不会自动选择“结果”设置。考虑到下拉菜单中没有“空白”选项（且一旦选择某项后无法清除），我认为这似乎不正确。

---

## [如何使用 Ruby 验证用户？](https://meta.discourse.org/t/how-do-you-verify-a-user-with-ruby/154740)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**回复:** 2\
**最近更新：:** [2020 年6 月 14 日 13:25 UTC](https://meta.discourse.org/t/how-do-you-verify-a-user-with-ruby/154740 "2020-06-14T13:25:17Z")

</div>

给定一个已创建用户名和电子邮件地址的用户……如何在 Ruby 中验证该用户？

---

## [Avatar 头像文件](https://meta.discourse.org/t/avatar-flairs-file/154775)

<div class="topic-metadata">

**Author:** [@mason.menter](https://meta.discourse.org/u/mason.menter)\
**回复:** 2\
**最近更新：:** [2020 年6 月 14 日 13:14 UTC](https://meta.discourse.org/t/avatar-flairs-file/154775 "2020-06-14T13:14:06Z")

</div>

有没有办法获取 Discourse 工作人员使用的头像徽章的 PNG 图片？我想要一个看起来像消息图标而不是单纯圆形的版本。谢谢。

---

## [Intratextual search-linking to other topics](https://meta.discourse.org/t/intratextual-search-linking-to-other-topics/70867)

<div class="topic-metadata">

**Author:** [@achamess](https://meta.discourse.org/u/achamess)\
**回复:** 6\
**最近更新：:** [2020 年6 月 14 日 04:54 UTC](https://meta.discourse.org/t/intratextual-search-linking-to-other-topics/70867 "2020-06-14T04:54:21Z")

</div>

When I want to link to other pages in my forum, it’d be nice to not have to leave the current topic box that I’m writing. It’d be great to be able to use some kind of key like " #" or something and then have a intratext …

---

## [在电子邮件中设置“最大字符数”以鼓励用户登录（查看完整消息）](https://meta.discourse.org/t/set-max-characters-in-emails-to-encourage-user-login-to-view-full-message/154783)

<div class="topic-metadata">

**Author:** [@jord8on](https://meta.discourse.org/u/jord8on)\
**回复:** 2\
**最近更新：:** [2020 年6 月 14 日 01:39 UTC](https://meta.discourse.org/t/set-max-characters-in-emails-to-encourage-user-login-to-view-full-message/154783 "2020-06-14T01:39:09Z")

</div>

类似的咨询已由 @Phuong\_SuSu 在此发布。 当用户在论坛帖子、私信（PM/DM）、其他摘要或汇总邮件中被提及，据我所知，用户会收到整条消息，且没有理由 t…

---

## [升级期间重复键值违反表的唯一约束](https://meta.discourse.org/t/duplicate-key-value-violates-unique-constraint-on-a-table-during-upgrade/154132)

<div class="topic-metadata">

**Author:** [@Steven](https://meta.discourse.org/u/Steven)\
**回复:** 5\
**最近更新：:** [2020 年6 月 13 日 23:58 UTC](https://meta.discourse.org/t/duplicate-key-value-violates-unique-constraint-on-a-table-during-upgrade/154132 "2020-06-13T23:58:22Z")

</div>

大家好，我在维护的一个论坛上遇到了一个奇怪的问题。 在升级过程中，无论是在 admin/upgrade 页面还是终端中，操作都失败了，并出现以下错误： -----------------------------------------------------------…

---

## [在 Discourse 和网站之间添加全局头部](https://meta.discourse.org/t/add-a-global-header-between-discourse-website/154776)

<div class="topic-metadata">

**Author:** [@jord8on](https://meta.discourse.org/u/jord8on)\
**回复:** 0\
**最近更新：:** [2020 年6 月 13 日 22:34 UTC](https://meta.discourse.org/t/add-a-global-header-between-discourse-website/154776 "2020-06-13T22:34:31Z")

</div>

我们希望拥有一个现代且响应迅速的头部，在我们的 Discourse 网站和 Wordpress 网站上都能访问。我的问题可能涉及任何其他平台（用于主网站），我刚好……

---

## [导入失败，提示“无法创建唯一索引”](https://meta.discourse.org/t/import-failing-with-could-not-create-unique-index/154693)

<div class="topic-metadata">

**Author:** [@Paulus\_Schoutsen](https://meta.discourse.org/u/Paulus_Schoutsen)\
**回复:** 5\
**最近更新：:** [2020 年6 月 13 日 21:29 UTC](https://meta.discourse.org/t/import-failing-with-could-not-create-unique-index/154693 "2020-06-13T21:29:27Z")

</div>

TL;DR：我们在升级过程中出了问题，正在寻求帮助 我们使用 Discourse 为 Home Assistant 社区提供支持。我们在 AWS 的 EC2 实例上采用 discourse\_docker 方式运行。 作为一个开源项目，对于……

---

## [用 rake 任务替换制表符？](https://meta.discourse.org/t/replace-tab-character-with-rake-task/81484)

<div class="topic-metadata">

**Author:** [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**回复:** 7\
**最近更新：:** [2018 年2 月 25 日 22:10 UTC](https://meta.discourse.org/t/replace-tab-character-with-rake-task/81484 "2018-02-25T22:10:15Z")

</div>

我有一堆帖子，其中包含以制表符（ ）开头的行，它们看起来像这样： 段落的第一行 显示为预格式化文本。 rake posts:remap\[" ","\\\\ "\] 没有找到任何内容……

---

## [如何组织从 head 标签输入的代码？](https://meta.discourse.org/t/how-to-organize-code-entered-from-the-head-tag/154708)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**回复:** 2\
**最近更新：:** [2020 年6 月 12 日 22:10 UTC](https://meta.discourse.org/t/how-to-organize-code-entered-from-the-head-tag/154708 "2020-06-12T22:10:45Z")

</div>

我正在在我的 Discourse 论坛上添加各种代码，这些代码通常旨在在加载不同页面时运行。到目前为止，我只是将其添加到自定义仪表板的 head 标签中，运行正常。然而，现在…

---

## [关于敏感话题的匿名发帖](https://meta.discourse.org/t/anonymous-posting-for-sensitive-subjects/109595)

<div class="topic-metadata">

**Author:** [@virginie.lehmann](https://meta.discourse.org/u/virginie.lehmann)\
**回复:** 16\
**最近更新：:** [2020 年6 月 13 日 17:47 UTC](https://meta.discourse.org/t/anonymous-posting-for-sensitive-subjects/109595 "2020-06-13T17:47:46Z")

</div>

So, we are building a community for managers. Thus, some subjects might get sensitive. We really need to have the option to have anonymous posting – a registered member could choose to be anonymous when posting a questio…

---

## [安装后无法访问网站](https://meta.discourse.org/t/site-cannot-be-reached-after-install/154751)

<div class="topic-metadata">

**Author:** [@Yucheng\_Jiang](https://meta.discourse.org/u/Yucheng_Jiang)\
**回复:** 20\
**最近更新：:** [2020 年6 月 13 日 15:45 UTC](https://meta.discourse.org/t/site-cannot-be-reached-after-install/154751 "2020-06-13T15:45:57Z")

</div>

您好，我按照这份操作指南进行了操作，但安装后出现了“无法访问网站”的错误。有人知道如何解决这个问题吗？

---

## [用于推广社区的 Twitter 机器人](https://meta.discourse.org/t/twitter-bot-for-promoting-community/139661)

<div class="topic-metadata">

**Author:** [@Federico\_Tomassetti](https://meta.discourse.org/u/Federico_Tomassetti)\
**回复:** 6\
**最近更新：:** [2020 年6 月 13 日 12:35 UTC](https://meta.discourse.org/t/twitter-bot-for-promoting-community/139661 "2020-06-13T12:35:54Z")

</div>

有成员建议我创建一个分享新话题的 Twitter 机器人。有人做过类似的事情吗？

---

## [能否使用 support@dwe.co.in 作为 forum.dwe.co.in 的 SMTP 用户名？](https://meta.discourse.org/t/can-i-use-support-dwe-co-in-as-smtp-user-name-for-forum-dwe-co-in/154735)

<div class="topic-metadata">

**Author:** [@Devansh\_Khetan](https://meta.discourse.org/u/Devansh_Khetan)\
**回复:** 8\
**最近更新：:** [2020 年6 月 13 日 09:28 UTC](https://meta.discourse.org/t/can-i-use-support-dwe-co-in-as-smtp-user-name-for-forum-dwe-co-in/154735 "2020-06-13T09:28:16Z")

</div>

我成功安装了 Discourse，但无法收到电子邮件。我尝试了一些修复方法，但均未奏效。我的 SMTP 配置正确并已验证。 我还尝试了以下操作： ./launcher enter app rails r “SiteSetting.notificati…

---

## [作业异常：未定义方法 \`name' for](https://meta.discourse.org/t/job-exception-undefined-method-name-for/154644)

<div class="topic-metadata">

**Author:** [@Richie](https://meta.discourse.org/u/Richie)\
**回复:** 5\
**最近更新：:** [2020 年6 月 13 日 08:44 UTC](https://meta.discourse.org/t/job-exception-undefined-method-name-for/154644 "2020-06-13T08:44:58Z")

</div>

大家好， Discourse 2.5.0.beta6 ( 7fe414d35d ) 我的日志文件充满了这些内容： 作业异常：未定义方法 \`name’ for #&#lt;#Class:0x00007fa29345f668:0x00007fa27e26e3a0&#gt; 例如： 点击其中一个会显示 …

---

## [如何修改 app/views/layouts/？](https://meta.discourse.org/t/how-do-i-make-changes-to-app-views-layouts/154489)

<div class="topic-metadata">

**Author:** [@DBHacker](https://meta.discourse.org/u/DBHacker)\
**回复:** 9\
**最近更新：:** [2020 年6 月 13 日 07:35 UTC](https://meta.discourse.org/t/how-do-i-make-changes-to-app-views-layouts/154489 "2020-06-13T07:35:28Z")

</div>

快速简单的问题： 我肯定是少了一些脑细胞！ 我们在 /var/www/discourse/app/views/layouts 目录下的一个文件中对应用容器做了一些修改。 然后，我们（像傻瓜一样）以为我们可以…

---

## [允许任何人查看，但仅限注册用户发帖](https://meta.discourse.org/t/allow-anyone-to-view-but-only-registered-to-post/154728)

<div class="topic-metadata">

**Author:** [@krishraov](https://meta.discourse.org/u/krishraov)\
**回复:** 4\
**最近更新：:** [2020 年6 月 13 日 05:47 UTC](https://meta.discourse.org/t/allow-anyone-to-view-but-only-registered-to-post/154728 "2020-06-13T05:47:41Z")

</div>

您好，我正在使用 Discourse 的 14 天免费试用版，并试图创建一个社区。 我的目标是： - 让注册用户发布文章并回复 - 允许任何人（无论是否注册）查看和阅读文章…

---

## [按投票排序](https://meta.discourse.org/t/sorting-by-votes/154601)

<div class="topic-metadata">

**Author:** [@Headless](https://meta.discourse.org/u/Headless)\
**回复:** 2\
**最近更新：:** [2020 年6 月 13 日 05:42 UTC](https://meta.discourse.org/t/sorting-by-votes/154601 "2020-06-13T05:42:40Z")

</div>

你好，据我所见，类别支持按投票数排序。我担心的是，按投票数排序的“全时段”选项未考虑周、日或其他时间范围，也未考虑是否属于前几名……

---

## [立即关闭主题](https://meta.discourse.org/t/immediately-close-topic/154624)

<div class="topic-metadata">

**Author:** [@Aiden12114](https://meta.discourse.org/u/Aiden12114)\
**回复:** 8\
**最近更新：:** [2020 年6 月 13 日 03:24 UTC](https://meta.discourse.org/t/immediately-close-topic/154624 "2020-06-13T03:24:59Z")

</div>

我想知道如何立即关闭一个话题。

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

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