# 提示观众此为主题旧帖的横幅

**URL:** <https://meta.discourse.org/t/banner-to-warn-viewers-of-an-old-topic/143315>\
**Category:** Feature\
**Created:** [2020年三月4日 16:29 UTC](https://meta.discourse.org/t/banner-to-warn-viewers-of-an-old-topic/143315 "2020-03-04T16:29:23Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)\
**Post date:** [2020年三月4日 20:35 UTC](https://meta.discourse.org/t/banner-to-warn-viewers-of-an-old-topic/143315/16 "2020-03-04T20:35:06Z")

</div>

> [@mbauman](#):
>
> 是否有可能一次性批量选择超过 50 个主题？

我相信可以——只需加载主题列表的下一组即可。你也可以通过控制台来操作。

> [@Batch tagging through console](https://meta.discourse.org/t/batch-tagging-through-console/47602/2?u=justindirose):
>
> Something quick that I think will work. Might want to verify against a couple of records first before uncommenting the line to add the tag. tag = Tag.find\_by(name: 'soundcloud') category = Category.find\_by(name: 'music') Topic.where(category: category).each do |topic| if topic.first\_post.raw =~ /\<your keyword here\>/ puts topic.first\_post.raw # topic.tags \<\< tag end end

你需要调整脚本，以查找指定日期之前的所有主题，从而自动添加该标签。

说句公道话，这属于 #Contribute > Feature 请求。Jeff 是产品经理，我能理解他关于在核心功能中添加此类横幅可能会造成干扰的观点。但是，如果你认为这对你的社区有必要，还是有其他方法可以实现这一功能的。

---

_[View the full topic](https://meta.discourse.org/t/banner-to-warn-viewers-of-an-old-topic/143315)._
