From 623a5be8a6a41a7ae373a473d9ce3eb8e57638ba Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 18 Feb 2024 18:48:37 -0500 Subject: [PATCH] Clarify condition on offset in Mastodon\Search->searchStatuses --- src/Module/Api/Mastodon/Search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 9cef70972b..8f511395bc 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -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) { if (Network::isValidHttpUrl($q)) { - if ($offset != 0) { + // Unique post search, any offset greater than 0 should return empty result + if ($offset > 0) { return []; } $q = Network::convertToIdn($q);