From 945bdf649be19962dc9f578036dcc83fe334ee9c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 Sep 2011 17:00:30 -0400 Subject: [PATCH] show correct favorites link --- lib/popularnoticesection.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/popularnoticesection.php b/lib/popularnoticesection.php index f6f27c6878..e66df8f423 100644 --- a/lib/popularnoticesection.php +++ b/lib/popularnoticesection.php @@ -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'); + } } } -- 2.39.2