Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / listsnav.php
index a2fa0b8cd13acb36130b0718b649fe09c01d8a03..71e994094cbadde9870c5a9953d4db857f1f35de 100644 (file)
@@ -49,9 +49,7 @@ class ListsNav extends MoreMenu
         parent::__construct($out);
         $this->profile = $profile;
 
-        $user = common_current_user();
-
-        $this->lists = $profile->getLists($user);
+        $this->lists = $profile->getLists(Profile::current());
     }
 
     function tag()
@@ -66,7 +64,7 @@ class ListsNav extends MoreMenu
         while ($this->lists->fetch()) {
                 $mode = $this->lists->private ? 'private' : 'public';
                 $items[] = array('showprofiletag',
-                                 array('tagger' => $this->profile->nickname,
+                                 array('nickname' => $this->profile->getNickname(),
                                        'tag'    => $this->lists->tag),
                                  $this->lists->tag,
                                  '');