main ← loic/fix-topic-raw-export
merged 11:48AM - 04 Mar 26 UTC
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.