]> git.mxchange.org Git - friendica.git/commitdiff
Allow @-symbols in Mastodon status searches under all conditions
authorHank Grabowski <hankgrabowski@gmail.com>
Fri, 17 Feb 2023 15:49:32 +0000 (10:49 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Fri, 17 Feb 2023 15:49:32 +0000 (10:49 -0500)
src/Module/Api/Mastodon/Search.php

index 96d41c3b2e810cd7317356f0b115940420636b5a..c35e33062bd954cad41d86e89dcda012fc80516b 100644 (file)
@@ -77,7 +77,7 @@ class Search extends BaseApi
                        }
                }
 
-               if ((empty($request['type']) || ($request['type'] == 'statuses')) && (!strpos($request['q'], '@') || $request['resolve'])) {
+               if (empty($request['type']) || ($request['type'] == 'statuses')) {
                        $result['statuses'] = self::searchStatuses($uid, $request['q'], $request['account_id'], $request['max_id'], $request['min_id'], $limit, $request['offset']);
 
                        if (!is_array($result['statuses'])) {