From 168693b103c17f0e98f2e02854d7290f59f0cfb5 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 20 Nov 2008 15:35:28 -0500 Subject: common_(un)subscribe_form darcs-hash:20081120203528-84dde-2b8d14a491ea4d44bebfdd4e4a3041dde3b375c1.gz --- lib/profilelist.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/profilelist.php') diff --git a/lib/profilelist.php b/lib/profilelist.php index ebc974d6b..b8f52fd8f 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -95,6 +95,16 @@ class ProfileList { common_raw($this->highlight($this->profile->bio)); common_element_end('p'); } + + $user = common_current_user(); + if ($user) { + if ($user->isSubscribed($this->profile)) { + common_unsubscribe_form($profile); + } else { + common_subscribe_form($profile); + } + } + common_element_end('li'); } -- cgit v1.2.3-54-g00ecf