]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/replynoticestream.php
No nickname in profile listing
[quix0rs-gnu-social.git] / lib / replynoticestream.php
index 9de8d4efaf9c49ca62b17e48e819537c2f7b4dba..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);
     }
 }