From c084e6a4271a9e1160d6e5079dd13da1c8965b6a Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Wed, 15 Feb 2023 15:12:58 -0500 Subject: [PATCH] Allows @ in query on statuses when resolving since Mastodon links have it --- src/Module/Api/Mastodon/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 07d1daa19..030677711 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -77,7 +77,7 @@ class Search extends BaseApi } } - if ((empty($request['type']) || ($request['type'] == 'statuses')) && (strpos($request['q'], '@') == false)) { + if ((empty($request['type']) || ($request['type'] == 'statuses')) && (!strpos($request['q'], '@') || $request['resolve'])) { $result['statuses'] = self::searchStatuses($uid, $request['q'], $request['account_id'], $request['max_id'], $request['min_id'], $limit, $request['offset']); if (!is_array($result['statuses'])) {