]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show correct favorites link
authorEvan Prodromou <evan@status.net>
Sat, 17 Sep 2011 21:00:30 +0000 (17:00 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 17 Sep 2011 21:00:30 +0000 (17:00 -0400)
lib/popularnoticesection.php

index f6f27c6878e973a6df406520b433200bb3d6f0bc..e66df8f4235c66193e23b783bf2f6a2ea01ff063 100644 (file)
@@ -69,6 +69,12 @@ class PopularNoticeSection extends NoticeSection
 
     function moreUrl()
     {
-        return common_local_url('favorited');
+        if (common_config('singleuser', 'enabled')) {
+            $user = User::singleUser();
+            common_local_url('showfavorites', array('nickname' =>
+                                                    $user->nickname));
+        } else {
+            return common_local_url('favorited');
+        }
     }
 }