Allows @ in query on statuses when resolving since Mastodon links have it
This commit is contained in:
parent
90717b602e
commit
c084e6a427
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user