check_item_notification($current_post, $uid);
if ($notify)
- proc_run('php', "include/notifier.php", $notify_type, $current_post);
+ proc_run(PRIORITY_HIGH, "include/notifier.php", $notify_type, $current_post);
return $current_post;
}
);
update_thread($item_id);
- proc_run('php','include/notifier.php','tgroup',$item_id);
+ proc_run(PRIORITY_HIGH,'include/notifier.php', 'tgroup', $item_id);
}
dbesc($url)
);
if(count($r)) {
- $contact_record = $r[0];
-
- $photos = import_profile_photo($photo,$importer["uid"],$contact_record["id"]);
-
- q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `micro` = '%s' WHERE `id` = %d",
- dbesc($photos[0]),
- dbesc($photos[1]),
- dbesc($photos[2]),
- intval($contact_record["id"])
- );
+ $contact_record = $r[0];
+ update_contact_avatar($photo, $importer["uid"], $contact_record["id"], true);
}
} else
$range = "AND `created` < UTC_TIMESTAMP() - INTERVAL %d DAY ";
- $r = q("SELECT * FROM `item`
+ $r = q("SELECT `file`, `resource-id`, `starred`, `type`, `id` FROM `item`
WHERE `uid` = %d $range
AND `id` = `parent`
$sql_extra
drop_item($item['id'],false);
}
- proc_run('php',"include/notifier.php","expire","$uid");
+ proc_run(PRIORITY_HIGH,"include/notifier.php", "expire", $uid);
}
// multiple threads may have been deleted, send an expire notification
if($uid)
- proc_run('php',"include/notifier.php","expire","$uid");
+ proc_run(PRIORITY_HIGH,"include/notifier.php", "expire", $uid);
}
// send the notification upstream/downstream as the case may be
- proc_run('php',"include/notifier.php","drop","$drop_id");
+ proc_run(PRIORITY_HIGH,"include/notifier.php", "drop", $drop_id);
if(! $interactive)
return $owner;