]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/repeatsofmenoticestream.php
Notice properties set in bad order on activityobject saving
[quix0rs-gnu-social.git] / lib / repeatsofmenoticestream.php
index f51fc9e4472d49b1d041f01cbeae762e60875497..ec80d8431447c10fadb929728ecc4f04055fa908 100644 (file)
@@ -47,10 +47,14 @@ if (!defined('STATUSNET')) {
 
 class RepeatsOfMeNoticeStream extends ScopingNoticeStream
 {
-    function __construct($user)
+    function __construct($user, $profile=-1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawRepeatsOfMeNoticeStream($user),
-                                                    'user:repeats_of_me:'.$user->id));
+                                                    'user:repeats_of_me:'.$user->id),
+                            $profile);
     }
 }