mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 16:42:28 +08:00
Previously, the AI discovery (semantic) search still triggered from the header search when the user narrowed their query to private messages with an `in:messages` / `in:personal` / `in:personal-direct` / `in:all-pms` filter. This change extends `isScopedSearch` to detect PM filters in the search term via a new shared `searchTermScopesToPMs` helper in `discourse/lib/search`, which also replaces the duplicated regex in `SearchMenu#isPMOnly` and `FullPageSearch#isPMOnly`. |
||
|---|---|---|
| .. | ||
| javascripts | ||
| stylesheets | ||