]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/repeatedbymenoticestream.php
Merge commit 'refs/merge-requests/41' of https://gitorious.org/social/mainline into...
[quix0rs-gnu-social.git] / lib / repeatedbymenoticestream.php
index 98c1583d6a596481a252a9ef7d1ad14b32358296..4e3e34162b15acb33feee43a98937ea6683aae98 100644 (file)
@@ -47,10 +47,14 @@ if (!defined('STATUSNET')) {
 
 class RepeatedByMeNoticeStream extends ScopingNoticeStream
 {
-    function __construct($user)
+    function __construct($user, $profile = -1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawRepeatedByMeNoticeStream($user),
-                                                    'user:repeated_by_me:'.$user->id));
+                                                    'user:repeated_by_me:'.$user->id),
+                            $profile);
     }
 }