]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/replynoticestream.php
Merge request from chimo adding getvaliddaemons to stopdaemons.php
[quix0rs-gnu-social.git] / lib / replynoticestream.php
index 9de8d4efaf9c49ca62b17e48e819537c2f7b4dba..2ab3fce261aeaa64f5acee518fd924d2f4b86067 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);
     }
 }
 
@@ -98,4 +102,4 @@ class RawReplyNoticeStream extends NoticeStream
 
         return $ids;
     }
-}
\ No newline at end of file
+}