X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile.php;h=4a459b9740e4055b5a62c9349ba689b9dc9598fd;hb=adfb79a9bbdfb43f35c0f022c1de6118b10ce115;hp=afc0ea4f74557b29824ef266a54be6fd59d81202;hpb=1a126032efbcb265a59f4d682bd072251f857c97;p=quix0rs-gnu-social.git diff --git a/classes/Profile.php b/classes/Profile.php index afc0ea4f74..4a459b9740 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -170,7 +170,7 @@ class Profile extends Memcached_DataObject $ids = Notice::stream(array($this, '_streamDirect'), array(), 'profile:notice_ids:' . $this->id, - $offset, $limit, $since_id, $before_id, $since); + $offset, $limit, $since_id, $max_id, $since); return Notice::getStreamByIds($ids); } @@ -225,8 +225,8 @@ class Profile extends Memcached_DataObject $notice->whereAdd('id > ' . $since_id); } - if ($before_id != 0) { - $notice->whereAdd('id < ' . $before_id); + if ($max_id != 0) { + $notice->whereAdd('id <= ' . $max_id); } if (!is_null($since)) {