summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-02 15:56:25 -0700
committerBrion Vibber <brion@pobox.com>2010-04-02 15:56:25 -0700
commit2f4438fe24a99e5493469f734bf41547c8ad2ce5 (patch)
tree71bd93323bb6d39696ea6d13d961d4395be59ee4 /classes/User.php
parent01a03e34c8d286011c0f4301e60c103d992a449a (diff)
parente4d934827bd7b2162e870611662549a5df759b57 (diff)
Merge branch '0.9.x' into 1.0.x
Conflicts: actions/imsettings.php lib/jabber.php Made a quick attempt to merge the new JID validation into the XmppPlugin, have not had a chance to test that version live yet. Should also move over the test cases.
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 f1ebe07b9..bec05f8cf 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -520,8 +520,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;
@@ -543,13 +543,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');