]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilenoticestream.php
bad brion! s/__constructor/__construct/
[quix0rs-gnu-social.git] / lib / profilenoticestream.php
index 7ea653f8c8c2a1bcc31bfabc6ad033c5f643c2d0..64cd31abc48d64f5d83276c5b2ea8db95b8d7d9b 100644 (file)
@@ -47,10 +47,14 @@ if (!defined('STATUSNET')) {
 
 class ProfileNoticeStream extends ScopingNoticeStream
 {
-    function __construct($profile)
+    function __construct($profile, $userProfile = -1)
     {
+        if (is_int($userProfile) && $userProfile == -1) {
+            $userProfile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawProfileNoticeStream($profile),
-                                                    'profile:notice_ids:' . $profile->id));
+                                                    'profile:notice_ids:' . $profile->id),
+                            $userProfile);
     }
 }