From: Zach Copley Date: Fri, 4 Dec 2009 01:44:34 +0000 (-0800) Subject: Was deleting wrong subscription during block. Now deletes the blockee's sub if it... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d2b42577de54204d83eb8eac565c25edd4205542;p=quix0rs-gnu-social.git Was deleting wrong subscription during block. Now deletes the blockee's sub if it exists. --- diff --git a/classes/User.php b/classes/User.php index 4838fe1c7d..2a4fab7d43 100644 --- a/classes/User.php +++ b/classes/User.php @@ -533,21 +533,7 @@ class User extends Memcached_DataObject // Cancel their subscription, if it exists - $result = subs_unsubscribe_to($this, $other); - - if ($result !== true) { - common_log(LOG_WARNING, - sprintf( - "Error trying to unsubscribe profile ID %d (%s) from user ID %d (%s): %s", - $other->id, - $other->nickname, - $this->id, - $this->nickname, - $result - ) - ); - return false; - } + subs_unsubscribe_to($other->getUser(),$this->getProfile()); $block->query('COMMIT');