]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/favenoticestream.php
define Reply::pkeyGet()
[quix0rs-gnu-social.git] / lib / favenoticestream.php
index b586a94d1762e7f2cdd45e184c85943030b0fe89..6527e5441e37cc8dd5c11acb9bd1e6f93b1c8c4c 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('STATUSNET')) {
  */
 class FaveNoticeStream extends ScopingNoticeStream
 {
-    function __construct($user_id, $own)
+    function __construct($user_id, $own, $profile = -1)
     {
         $stream = new RawFaveNoticeStream($user_id, $own);
         if ($own) {
@@ -54,7 +54,11 @@ class FaveNoticeStream extends ScopingNoticeStream
         } else {
             $key = 'fave:ids_by_user:'.$user_id;
         }
-        parent::__construct(new CachingNoticeStream($stream, $key));
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
+        parent::__construct(new CachingNoticeStream($stream, $key),
+                            $profile);
     }
 }