From: Hank Grabowski Date: Thu, 23 Feb 2023 12:03:58 +0000 (-0500) Subject: Null out min/max/since ID fields by default in Mastodon Timeline API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cbf55241a3fc74165a669f3097eac20a678e6750;p=friendica.git Null out min/max/since ID fields by default in Mastodon Timeline API --- diff --git a/src/Module/Api/Mastodon/Timelines/Home.php b/src/Module/Api/Mastodon/Timelines/Home.php index f219f0a2c7..797b192407 100644 --- a/src/Module/Api/Mastodon/Timelines/Home.php +++ b/src/Module/Api/Mastodon/Timelines/Home.php @@ -45,9 +45,9 @@ class Home extends BaseApi $uid = self::getCurrentUserID(); $request = $this->getRequest([ - 'max_id' => '0', // Return results older than id - 'since_id' => 0, // Return results newer than id - 'min_id' => '0', // Return results immediately newer than id + 'max_id' => null, // Return results older than id + 'since_id' => null, // Return results newer than id + 'min_id' => null, // Return results immediately newer than id 'limit' => 20, // Maximum number of results to return. Defaults to 20. 'local' => false, // Return only local statuses? 'with_muted' => false, // Pleroma extension: return activities by muted (not by blocked!) users.