]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/replynoticestream.php
better output for registration confirmation
[quix0rs-gnu-social.git] / lib / replynoticestream.php
index d9214b710778fca99ff25c7f678fcb06ee62faf1..ec13ff9a67f6906bd80d6e7149f10832906031da 100644 (file)
@@ -47,10 +47,14 @@ if (!defined('STATUSNET')) {
 
 class ReplyNoticeStream extends ScopingNoticeStream
 {
-    function __construct($userId)
+    function __construct($userId, $profile=-1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawReplyNoticeStream($userId),
-                                                    'reply:stream:' . $userId));
+                                                    'reply:stream:' . $userId),
+                            $profile);
     }
 }
 
@@ -74,7 +78,7 @@ class RawReplyNoticeStream extends NoticeStream
         $this->userId = $userId;
     }
 
-    function getNoticeIds($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $max_id=0)
+    function getNoticeIds($offset, $limit, $since_id, $max_id)
     {
         $reply = new Reply();
         $reply->profile_id = $this->userId;