]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Was deleting wrong subscription during block. Now deletes the blockee's sub if it...
authorZach Copley <zach@status.net>
Fri, 4 Dec 2009 01:44:34 +0000 (17:44 -0800)
committerZach Copley <zach@status.net>
Fri, 4 Dec 2009 01:44:34 +0000 (17:44 -0800)
classes/User.php

index 4838fe1c7df632454b010ac5982751083ce6e828..2a4fab7d43c6e6bef31a69863e3304888b855f91 100644 (file)
@@ -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');