summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-08 12:09:31 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-08 12:09:31 -0500
commit17fd7b185054e260f0a9a2cedd264ff3ef43d725 (patch)
treeb0ba3cd7189135659a21e2fb0f5fbb03de797bdf /actions/showstream.php
parent5327d3f7ba87a1c81229cc9ec56c8d26f5dd6b50 (diff)
add returnto information to the block form
darcs-hash:20081208170931-5ed1f-e7c5853e6a222b04723f20c01ebaae15eeab3687.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index e12a227e3..0fc397811 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -203,8 +203,15 @@ class ShowstreamAction extends StreamAction {
common_profile_new_message_nudge($cur, $user, $profile);
if ($cur) {
- common_element_start('li', array('id' => 'profile_block'));
- common_block_form($profile);
+ $blocked = $cur->hasBlocked($profile);
+ common_element_start('li', array('id' => ($blocked) ? 'profile_unblock' : 'profile_block'));
+ if ($blocked) {
+# common_unblock_form($profile, array('action' => 'showstream',
+# 'nickname' => $profile->nickname));
+ } else {
+ common_block_form($profile, array('action' => 'showstream',
+ 'nickname' => $profile->nickname));
+ }
common_element_end('li');
}