add contact edit hooks

This commit is contained in:
Friendika 2011-01-07 03:15:52 -08:00
parent 6598947049
commit 0147520e90
3 changed files with 19 additions and 2 deletions

View file

@ -256,7 +256,7 @@ function dfrn_request_post(&$a) {
FROM `intro` LEFT JOIN `contact` on `intro`.`contact-id` = `contact`.`id`
WHERE `intro`.`blocked` = 1 AND `contact`.`self` = 0 AND `intro`.`datetime` < UTC_TIMESTAMP() - INTERVAL 30 MINUTE ");
if(count($r)) {
foreach($r as ($rr) {
foreach($r as $rr) {
if(! $rr['rel']) {
q("DELETE FROM `contact` WHERE `id` = %d LIMIT 1",
intval($rr['cid'])