From 67b8ad242b7afd54f8ea3e3eb59cf868a9810f71 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Fri, 17 Feb 2023 10:49:32 -0500 Subject: [PATCH] Allow @-symbols in Mastodon status searches under all conditions --- 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 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'])) {