X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=650eb7fc89c3723101b3e9f66fa3f8e13ea0e850;hb=a492a13aeb53891d4f0b8601f66720531b92af45;hp=c5214fe4612ae22bb24e16338e8726af035c5aa2;hpb=e4a2430967f229dd02bc97c5c66be0620b3235d8;p=friendica.git diff --git a/include/follow.php b/include/follow.php index c5214fe461..650eb7fc89 100644 --- a/include/follow.php +++ b/include/follow.php @@ -197,32 +197,6 @@ function new_contact($uid, $url, $interactive = false, $network = '') { $fields = array('rel' => $new_relation, 'subhub' => $subhub, 'readonly' => false); dba::update('contact', $fields, array('id' => $r[0]['id'])); } else { - // check service class limits - - $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `pending` = 0 AND `self` = 0", - intval($uid) - ); - if (dbm::is_result($r)) - $total_contacts = $r[0]['total']; - - if (! service_class_allows($uid,'total_contacts',$total_contacts)) { - $result['message'] .= upgrade_message(); - return $result; - } - - $r = q("SELECT COUNT(`network`) AS `total` FROM `contact` WHERE `uid` = %d AND `network` = '%s' AND `pending` = 0 AND `self` = 0", - intval($uid), - dbesc($network) - ); - if (dbm::is_result($r)) { - $total_network = $r[0]['total']; - } - - if (! service_class_allows($uid,'total_contacts_' . $network,$total_network)) { - $result['message'] .= upgrade_message(); - return $result; - } - $new_relation = ((in_array($ret['network'], array(NETWORK_MAIL))) ? CONTACT_IS_FRIEND : CONTACT_IS_SHARING); // create contact record