summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-31 12:47:42 -0700
committerBrion Vibber <brion@pobox.com>2010-03-31 12:47:42 -0700
commit3ed88938b95804ecadc62ed3a5f61a0863e2ff78 (patch)
treedcbcd646c22613400b49af09e9db5175627cd138 /classes/User.php
parent0841fa712ec558d283f533690d2db50dfa1da8fc (diff)
parentd3f995846b2a849bc53eb965eb2607d8d1d6dd34 (diff)
Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/classes/User.php b/classes/User.php
index 659ec9467..2c256301c 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -525,8 +525,8 @@ class User extends Memcached_DataObject
common_log(LOG_WARNING,
sprintf(
"Profile ID %d (%s) tried to block his or herself.",
- $profile->id,
- $profile->nickname
+ $this->id,
+ $this->nickname
)
);
return false;
@@ -548,13 +548,7 @@ class User extends Memcached_DataObject
return false;
}
- // Cancel their subscription, if it exists
-
- $otherUser = User::staticGet('id', $other->id);
-
- if (!empty($otherUser)) {
- subs_unsubscribe_to($otherUser, $this->getProfile());
- }
+ Subscription::cancel($other, $this->getProfile());
$block->query('COMMIT');