mirror of
https://github.com/discourse/discourse.git
synced 2025-06-09 06:18:14 +08:00
FIX: category search was failing for anon
This commit is contained in:
@ -75,7 +75,8 @@ export default createWidget('search-menu', {
|
|||||||
|
|
||||||
let url = '/search?q=' + encodeURIComponent(searchData.term);
|
let url = '/search?q=' + encodeURIComponent(searchData.term);
|
||||||
if (contextEnabled) {
|
if (contextEnabled) {
|
||||||
if (ctx.id.toString().toLowerCase() === this.currentUser.username_lower &&
|
if (this.currentUser &&
|
||||||
|
ctx.id.toString().toLowerCase() === this.currentUser.username_lower &&
|
||||||
type === "private_messages") {
|
type === "private_messages") {
|
||||||
url += ' in:private';
|
url += ' in:private';
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user