需要重新开放所有主题!

尊敬的客服团队,

如何批量重新打开所有已关闭的话题!
我有控制台访问权限,请提供相关命令!

另外,我需要设置什么值来防止话题自动关闭?

image

1 个赞

请看这里:

若要保持话题开启,请将“自动关闭”设置留空。

2 个赞

尊敬的客服团队,
谢谢 :slight_smile:

我只是打开了所有已关闭的旧主题!

Topic.where(closed: true).where("created_at < '2015-01-01'").find_each do |topic|
  topic.update_status('closed', false, Discourse.system_user)
end
2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.