# 未列出的主题出现在RSS feed中

**URL:** https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448
**Category:** Bug
**Tags:** unlisting
**Created:** [2022年十月10日 06:02 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448 "2022-10-10T06:02:24Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [2022年十月10日 06:02 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/1 "2022-10-10T06:02:24Z")

</div>

RSS feed (/latest.rss) 中的条目显示了未列出的主题，不应如此

我使用的是今天早上的构建版本（[7009f9c95e](https://github.com/discourse/discourse/commits/7009f9c95e6a7ac8262b2e906c48c11eddd49827)）

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2022年十月10日 22:55 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/3 "2022-10-10T22:55:45Z")

</div>

我们确定这不是缓存问题吗？缓存过期后它会消失吗？

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [2022年十月10日 22:57 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/4 "2022-10-10T22:57:16Z")

</div>

我会继续每天监控我的信息流，到目前为止，该主题仍在信息流中。

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [2022年十月11日 06:15 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/5 "2022-10-11T06:15:33Z")

</div>

你好，

我检查了以下内容：

首先检查 [d5f6262c4f](https://github.com/discourse/discourse/commits/d5f6262c4fba45b59298e5677b3e551e03813185)，这比你的 Discourse 版本早大约两天。

这是列出的欢迎主题。

 ![Screenshot 2022-10-11 at 7.53.05](https://global.discourse-cdn.com/meta/original/4X/5/f/2/5f257548ffd315a187c8ec3248ef172ef0c47294.png)

现在我不列出它。

 ![Screenshot 2022-10-11 at 7.54.45](https://global.discourse-cdn.com/meta/original/4X/6/8/f/68f7eac7f2ea257f9d0d92ac49213d54c40b905f.png)

未找到，因此此版本按预期工作。现在我更新到最新的 Discourse 版本，即 [b75dc04a25](https://github.com/discourse/discourse/commits/b75dc04a2549f130572dafd265ac064080fb5c30)。

* * *

它仍然未找到，因此我无法在最新的 Discourse 上重现此问题。我认为你应该尝试更新到最新版本。 🙂

 ![Screenshot 2022-10-11 at 8.11.35](https://global.discourse-cdn.com/meta/original/4X/1/c/8/1c8629c7f9f981027f672b98e05ac114950eb7c1.png)

* * *

为了确保，我再次列出它

 ![Screenshot 2022-10-11 at 8.13.01](https://global.discourse-cdn.com/meta/original/4X/d/8/f/d8f7ed8c2ef2103123c4ece2b2f0bd6873c70c3c.png)

然后取消列出…

 ![Screenshot 2022-10-11 at 8.14.09](https://global.discourse-cdn.com/meta/original/4X/3/0/b/30bfde82442edf897c02e0c9a0edffd59c53cd46.png)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022年十月11日 06:20 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/6 "2022-10-11T06:20:00Z")

</div>

不，我也无法重现此问题。

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [2022年十月11日 11:48 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/7 "2022-10-11T11:48:03Z")

</div>

我刚刚列出/取消列出了该主题，但它仍然显示在 RSS Feed 中。

不过很奇怪……不确定我还能尝试什么。

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2022年十月12日 01:08 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/8 "2022-10-12T01:08:17Z")

</div>

这有可能是插件相关的问题吗？

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [2022年十月12日 07:23 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/9 "2022-10-12T07:23:54Z")

</div>

嗯，经过进一步测试，现在似乎按预期工作了 😧

谢谢你的帮助。

---

<div class="post-metadata">

### Author: ![iidbae](https://avatars.discourse-cdn.com/v4/letter/i/a183cd/32.png) [@iidbae](https://meta.discourse.org/u/iidbae)
#### Post date: [2022年十月12日 07:32 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/10 "2022-10-12T07:32:30Z")

</div>

我和你们有同样的经历，也是同样的 build 7009f9c95e。主题和回复也出现在 RSS feed 中。

在我的案例中，主题被设为 unlisted 后，评论/回复仍然出现。

之前，主题是公开的，然后被设为 unlisted。  
谢谢

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [2022年十月12日 07:45 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/11 "2022-10-12T07:45:36Z")

</div>

我必须纠正一下，问题仍然存在，但在 /posts.rss 中 - 现在使用 posts.rss 我也遇到了一些非常不一致的行为

- 登录时打开 /posts.rss 会收到错误（哎呀，页面是私有的）
- 无痕模式下 /posts.rss 加载如我所料
- 某种程度上我的 RSS 阅读器 ([feeder.co](http://feeder.co)) 在添加 feed 时可以读取它，包括未列出的主题
- 同一个 RSS 阅读器浏览器扩展，它还可以将 .rss 页面格式化为可读格式，但无法直接获取页面：“此 feed 为空”
  - 有问题的未关注的 feed 项是主题的 OP，不确定为什么它在 /posts.rss 中

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2022年十月14日 00:41 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/12 "2022-10-14T00:41:53Z")

</div>

嗯……

> <https://github.com/discourse/discourse/blob/d1d0241d8bebf042a59c47d031f7f7189155cfa2/app/controllers/posts_controller.rb#L81-L88>

> <https://github.com/discourse/discourse/blob/d1d0241d8bebf042a59c47d031f7f7189155cfa2/app/models/post.rb#L95-L95>

是的，看起来我们没有从 posts.json 路由中省略未列出的内容。

我们将在下周解决这个问题，需要决定如何进行省略。从 `public_posts` 范围中移除它在技术上可能是正确的，因为它已经连接到 topic，但我们需要仔细测试。

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [2022年十月18日 19:09 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/15 "2022-10-18T19:09:53Z")

</div>

应通过以下方式修复：

> <https://github.com/discourse/discourse/pull/18649>
>
> This commit excludes posts from hidden topics from the latest posts and user act…ivity RSS feeds. Additionally, it also excludes small actions from the first one.

我还注意到我们在信息流中包含了小型操作，因此我将其过滤掉了。

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2022年十月19日 21:00 UTC](https://meta.discourse.org/t/unlisted-topic-appears-in-rss-feed/241448/16 "2022-10-19T21:00:40Z")

</div>

此主题已在 20 小时后自动关闭。不再允许回复。
