summaryrefslogtreecommitdiff
path: root/lib/profilelist.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r--lib/profilelist.php10
1 files changed, 10 insertions, 0 deletions
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');
}