Implements the anonymousOnly search filter for confessions, allowing users to restrict search results to content posted by unauthenticated guest users (no linked registered account).
- DTO: Updated
SearchConfessionDtoto implement and document theanonymousOnlyflag. - Repository: Enhanced
AnonymousConfessionRepository.hybridSearchandfullTextSearchwith:LEFT JOINonuserLinksto filter for truly anonymous confessions.- Added standard safety filters for
isDeleted,isHidden, andmoderationStatusto ensure search consistency and security.
- Service: Updated
ConfessionServiceto correctly propagate the full search DTO to the repository methods. - Tests: Added unit tests to
confession.search.spec.tsto verify the service-to-repository flag propagation.
- Cross-referenced entity relations (
confession -> anonymousUser -> userLinks) to ensure accurate join logic. - Verified Postgres-specific query builder patterns for the PostgreSQL full-text search backend.
- Added test coverage for the new filter across all search types.
Closes #521