0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/app
Isaac Janzen cf34ec28e0
FIX: Respect group member visibility in private-message read receipts (#42372)
## Summary

Align private-message read receipts with recipient-group visibility
settings. `PostReadersController#ensure_can_see_readers!`
(`app/controllers/post_readers_controller.rb:42`) now returns reader
details only when the requester can view the membership of every
recipient group and belongs to a group with read-state publishing
enabled. `TopicView#show_read_indicator?` (`lib/topic_view.rb:297`)
applies the same visibility rule to the UI.

Realtime `:read` events from
`TopicTrackingState.trigger_post_read_count_update`
(`app/models/topic_tracking_state.rb:600`) continue to publish
`readers_count`, but no longer include `reader_id`. Reader identities
remain available through the authorized `/post_readers.json` endpoint.
Tests cover group private messages with restricted member visibility.

## Source

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

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-08-06 10:14:39 -05:00
..
assets UX: UC – composer redesign > fix category icon size (#42402) 2026-08-06 12:17:00 +02:00
controllers FIX: Respect group member visibility in private-message read receipts (#42372) 2026-08-06 10:14:39 -05:00
helpers FEATURE: Allow selection of multiple content languages when viewing topics and posts (#42128) 2026-07-30 12:19:44 +08:00
jobs FEATURE: Reclassify likely crawlers in site traffic reporting (#42199) 2026-08-04 10:08:53 +08:00
mailers FEATURE: Log in with a one-time email code (#40804) 2026-06-17 12:34:48 -07:00
models FIX: Respect group member visibility in private-message read receipts (#42372) 2026-08-06 10:14:39 -05:00
queries/reports DEV: Remove reporting_improvements upcoming change (#41259) 2026-07-01 07:52:02 +08:00
serializers FIX: Consistently exclude synonyms and hidden tags from tag lists (#42364) 2026-08-05 20:29:35 +02:00
services FIX: Consistently exclude synonyms and hidden tags from tag lists (#42364) 2026-08-05 20:29:35 +02:00
views FIX: Prevent browsers from restoring stale documents in bfcache mode (#42207) 2026-07-31 17:24:47 +02:00