mirror of
https://github.com/friendica/friendica
synced 2025-04-25 08:30:11 +00:00
add contact edit hooks
This commit is contained in:
parent
6598947049
commit
0147520e90
3 changed files with 19 additions and 2 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue