# 用户可以在原始 URL 中查看隐藏的标记内容

**URL:** <https://meta.discourse.org/t/users-can-see-hidden-flagged-content-in-the-raw-url/350051>\
**Category:** Feature\
**Created:** [2025年二月1日 18:08 UTC](https://meta.discourse.org/t/users-can-see-hidden-flagged-content-in-the-raw-url/350051 "2025-02-01T18:08:48Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)\
**Post date:** [2025年二月25日 20:50 UTC](https://meta.discourse.org/t/users-can-see-hidden-flagged-content-in-the-raw-url/350051/21 "2025-02-25T20:50:25Z")

</div>

> [@thoka](#):
>
> 此功能请求似乎是[防止被标记隐藏的内容被查看](https://meta.discourse.org/t/prevent-content-hidden-by-flags-from-being-viewed/31582)的重复（或特例）。

那次情况不同，我隐约记得在 2022 年的一次侧边栏更新之前，曾经能够在另一个论坛上查看被标记隐藏的内容，但从那以后，情况就变了，只有 TL4+ 才能看到被标记的内容，否则有人会提交 bug 报告，我不记得了。

---

<div class="post-metadata">

**Author:** ![Turtle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/turtle/32/476220_2.png) [@Turtle](https://meta.discourse.org/u/Turtle)\
**Post date:** [2025年三月3日 20:31 UTC](https://meta.discourse.org/t/users-can-see-hidden-flagged-content-in-the-raw-url/350051/22 "2025-03-03T20:31:01Z")

</div>

哦，不是我把它放进 #Contribute > Feature 的。我真心以为这是个 bug。在我看来，这似乎只是某种被遗忘的东西，但 Sam 说它与其说是安全功能，不如说是一个故障。

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2026年三月24日 21:49 UTC](https://meta.discourse.org/t/users-can-see-hidden-flagged-content-in-the-raw-url/350051/23 "2026-03-24T21:49:06Z")

</div>

我认为这在以下链接中已更改：

> <https://github.com/discourse/discourse/pull/38237>
>
> The \`/raw/:topic\_id\` endpoint was exposing hidden posts to users who shouldn't s…ee them, while \`/raw/:topic\_id/:post\_number\` correctly filtered them via \`guardian.can\_see?\`.
> 
> This inconsistency meant anonymous users and regular users could see hidden post content when fetching a whole topic as markdown.
> 
> Also refactors \`markdown\_num\` into smaller private methods for clarity.

[上一頁](https://meta.discourse.org/t/users-can-see-hidden-flagged-content-in-the-raw-url/350051.md?page=1)
