# Hidden posts show up in search results

**URL:** https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493
**Category:** Bug
**Created:** [September 19, 2023, 12:31pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493 "2023-09-19T12:31:34Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Hester40MT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hester40mt/32/517616_2.png) [@Hester40MT](https://meta.discourse.org/u/Hester40MT)
#### Post date: [September 19, 2023, 12:31pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/1 "2023-09-19T12:31:35Z")

</div>

We’ve noticed that hidden posts show up in search results with a snippet of the hidden text in the results.

To replicate, search on a username in a topic in which their post was hidden. Defeats having a post hidden when you can just search the username in the topic to read it. Unless there is some Admin switch that disables search results displaying hidden posts?

Noticed this when this feature was introduced of not being able to view hidden posts and has continued through version: 3.2.0.beta1-dev

---

<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: [September 19, 2023, 1:26pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/2 "2023-09-19T13:26:49Z")

</div>

There is a similar issue that the post is visbile in the users activity tab

> [@Flagged comments still readable in user's profile](https://meta.discourse.org/t/flagged-comments-still-readable-in-users-profile/266664/9):
>
> Priority/Severity: Medium - While this bug doesn’t break functionality, it contradicts the purpose of flagging, potentially allowing inappropriate content to remain accessible. Platform: Tested on a desktop, OS: Windows 10, Browser: Google Chrome. Description: In Discourse, when a user’s comment is flagged, it gets removed from the regular topic view, indicating that the flagging function is working as expected. However, by navigating to the offending user’s profile and checking their ‘Recent …

---

<div class="post-metadata">

### Author: ![Hester40MT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hester40mt/32/517616_2.png) [@Hester40MT](https://meta.discourse.org/u/Hester40MT)
#### Post date: [September 20, 2023, 3:50pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/3 "2023-09-20T15:50:11Z")

</div>

Hello @Moin,

> [@Moin](#):
>
> There is a similar issue that the post is visbile in the users activity tab

I’ve looked into this further. The posts showing in the user activity is only viewable to moderators (or those who have Trust Level to view). To me, this how it should be. It is not viewable to others from the users activity page.

However, anyone can use the search and target the user in a topic where a post has been hidden which will display in search results a snippet of the hidden post. A user doesn’t have to be logged in to do this.

---

<div class="post-metadata">

### Author: ![Brandon\_Martus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brandon_martus/32/127631_2.png) [@Brandon\_Martus](https://meta.discourse.org/u/Brandon_Martus)
#### Post date: [November 19, 2023, 10:18pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/4 "2023-11-19T22:18:35Z")

</div>

We’ve noticed this on our forums as well. A post is hidden due to being flagged, but people can embed the post elsewhere and read the flagged/hidden content. Shouldn’t the content be unavailable while it’s being reviewed?

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [April 30, 2024, 1:35pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/8 "2024-04-30T13:35:16Z")

</div>

We fixed this issue so that hidden posts will not appear in search results — thanks for bringing this to our attention!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 2, 2024, 10:02pm UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/9 "2024-05-02T22:02:11Z")

</div>

Just to tie this off 🙂

[https://github.com/discourse/discourse/pull/26800](https://github.com/discourse/discourse/pull/26800)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 3, 2024, 7:00am UTC](https://meta.discourse.org/t/hidden-posts-show-up-in-search-results/279493/10 "2024-05-03T07:00:06Z")

</div>

This topic was automatically closed after 8 hours. New replies are no longer allowed.
