]> git.mxchange.org Git - friendica.git/commitdiff
Null out min/max/since ID fields by default in Mastodon Timeline API
authorHank Grabowski <hankgrabowski@gmail.com>
Thu, 23 Feb 2023 12:03:58 +0000 (07:03 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Thu, 23 Feb 2023 12:03:58 +0000 (07:03 -0500)
src/Module/Api/Mastodon/Timelines/Home.php

index f219f0a2c78fc853f59545300318425231e69837..797b192407509c121c417a42858347a3d2335012 100644 (file)
@@ -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.