mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 05:37:26 +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`. |
||
|---|---|---|
| .. | ||
| components | ||
| controllers | ||
| lib | ||
| models | ||
| routes | ||
| services | ||