Clarify condition on offset in Mastodon\Search->searchStatuses
This commit is contained in:
parent
d1cd9a016e
commit
623a5be8a6
|
@ -137,7 +137,8 @@ class Search extends BaseApi
|
||||||
private static function searchStatuses(int $uid, string $q, string $account_id, int $max_id, int $min_id, int $limit, int $offset)
|
private static function searchStatuses(int $uid, string $q, string $account_id, int $max_id, int $min_id, int $limit, int $offset)
|
||||||
{
|
{
|
||||||
if (Network::isValidHttpUrl($q)) {
|
if (Network::isValidHttpUrl($q)) {
|
||||||
if ($offset != 0) {
|
// Unique post search, any offset greater than 0 should return empty result
|
||||||
|
if ($offset > 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
$q = Network::convertToIdn($q);
|
$q = Network::convertToIdn($q);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user