don't block yourself!

darcs-hash:20081212051830-84dde-4db7b40c27b20bd37bac261a68bd11051d263c25.gz
This commit is contained in:
Evan Prodromou 2008-12-12 00:18:30 -05:00
parent 596c1b7f5a
commit 9855fc003b

View File

@ -202,7 +202,7 @@ class ShowstreamAction extends StreamAction {
$user = User::staticGet('id', $profile->id); $user = User::staticGet('id', $profile->id);
common_profile_new_message_nudge($cur, $user, $profile); common_profile_new_message_nudge($cur, $user, $profile);
if ($cur) { if ($cur && $cur->id != $profile->id) {
$blocked = $cur->hasBlocked($profile); $blocked = $cur->hasBlocked($profile);
common_element_start('li', array('id' => 'profile_block')); common_element_start('li', array('id' => 'profile_block'));
if ($blocked) { if ($blocked) {