From: Hank Grabowski <hankgrabowski@gmail.com>
Date: Wed, 15 Feb 2023 20:12:58 +0000 (-0500)
Subject: Allows @ in query on statuses when resolving since Mastodon links have it
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c084e6a4271a9e1160d6e5079dd13da1c8965b6a;p=friendica.git

Allows @ in query on statuses when resolving since Mastodon links have it
---

diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php
index 07d1daa19e..0306777117 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'])) {