From 23d160cb33fdb535ccff85e224f7d93dbf4edc23 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 10 Nov 2021 19:46:12 +0000 Subject: [PATCH] argh --- ext/user/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/user/main.php b/ext/user/main.php index 74eacf54..7a5c5abc 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -385,10 +385,10 @@ class UserPage extends Extension $matches = []; if (preg_match(self::USER_SEARCH_REGEX, $event->term, $matches)) { - $duser = User::by_name($matches[1]); + $duser = User::by_name($matches[2]); if (is_null($duser)) { throw new SearchTermParseException( - "Can't find the user named ".html_escape($matches[1]) + "Can't find the user named ".html_escape($matches[2]) ); } $event->add_querylet(new Querylet("images.owner_id ${matches[1]}= {$duser->id}"));