]> git.mxchange.org Git - friendica.git/commitdiff
Allows @ in query on statuses when resolving since Mastodon links have it
authorHank Grabowski <hankgrabowski@gmail.com>
Wed, 15 Feb 2023 20:12:58 +0000 (15:12 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Wed, 15 Feb 2023 20:12:58 +0000 (15:12 -0500)
src/Module/Api/Mastodon/Search.php

index 07d1daa19e57931af26fd93052e2ae8457a574e1..03067771179d46cd0f6264a75878a21a79c77275 100644 (file)
@@ -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'])) {