From: Hank Grabowski Date: Fri, 17 Feb 2023 15:49:32 +0000 (-0500) Subject: Allow @-symbols in Mastodon status searches under all conditions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=67b8ad242b7afd54f8ea3e3eb59cf868a9810f71;p=friendica.git Allow @-symbols in Mastodon status searches under all conditions --- diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 96d41c3b2e..c35e33062b 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'], '@') || $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'])) {