0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/app
discoursebot d32c1381a5
SECURITY: Enforce first-post visibility for topic bookmarks [backport 2026.6] (#42354)
Backport of #42321 to release/2026.6.

---

## Summary

Topic bookmark creation, listing, search, and reminder eligibility now
require the first post to be visible to the user. The fix adds an inner
join on the first post with hidden-post filtering to the list query and
delegates creation and visibility checks to `guardian.can_see_post?` on
the first post, preventing an authenticated user from bookmarking a
topic or searching its metadata after the first post is hidden.

## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1530

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>

---------

Co-authored-by: Chris Alberti <christo@discourse.org>
2026-08-05 12:53:18 -05:00
..
assets UX: Remove new height variables from foundation modernization [backport 2026.6] (#41985) 2026-07-23 11:11:11 -05:00
controllers SECURITY: Block requests for hidden post revisions through historical version reconstruction [backport 2026.6] (#42271) 2026-08-03 12:28:43 -05:00
helpers SECURITY: Prevent cache poisoning/XSS via color scheme cookies [backport 2026.6] 2026-07-28 17:05:36 +02:00
jobs SECURITY: Authorize secure-upload hotlink downloads against post user 2026-06-30 16:10:52 +02:00
mailers FEATURE: Log in with a one-time email code (#40804) 2026-06-17 12:34:48 -07:00
models SECURITY: Escape embed URL for HTML attribute context in footer [backport 2026.6] (#42316) 2026-08-04 10:06:43 -05:00
queries/reports FIX: Enforce can_see_ip checks across admin IP features (#40019) 2026-05-19 11:37:20 +08:00
serializers SECURITY: Respect topic visibility in reviewable score serializer [backport 2026.6] 2026-07-28 17:05:36 +02:00
services SECURITY: Enforce first-post visibility for topic bookmarks [backport 2026.6] (#42354) 2026-08-05 12:53:18 -05:00
views FEATURE: Localizable /about page fields via its settings page (#41123) 2026-06-26 20:41:08 +08:00