Was deleting wrong subscription during block. Now deletes the blockee's sub if it exists.

This commit is contained in:
Zach Copley 2009-12-03 17:44:34 -08:00
parent 2acdfff58b
commit d2b42577de
1 changed files with 1 additions and 15 deletions

View 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');