]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Mapstraction/actions/allmap.php
Modernize Profile_prefs to use Managed_DataObject functions
[quix0rs-gnu-social.git] / plugins / Mapstraction / actions / allmap.php
index d1a9fddabb467b269cf647eed081c80ebd65fb7e..21bdf62eaa94594a5c7615e3dcaa46ddcc61f09c 100644 (file)
@@ -47,8 +47,7 @@ class AllmapAction extends MapAction
     function prepare($args)
     {
         if (parent::prepare($args)) {
-            $cur = common_current_user();
-            $stream = new InboxNoticeStream($this->user, $cur->getProfile());
+            $stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped);
             $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
                                                 NOTICES_PER_PAGE + 1,
                                                 null,