perform a refresh_all when an import has completed so that all your connections get a fresh update.
This commit is contained in:
parent
e11f2a9b02
commit
a09829a1ee
@ -208,9 +208,8 @@ function notifier_run($argv, $argc){
|
|||||||
$channel = $s[0];
|
$channel = $s[0];
|
||||||
$uid = $item_id;
|
$uid = $item_id;
|
||||||
$recipients = array();
|
$recipients = array();
|
||||||
$r = q("select * from abook where abook_channel = %d and not (abook_flags & %d)",
|
$r = q("select abook_xchan from abook where abook_channel = %d",
|
||||||
intval($item_id),
|
intval($item_id)
|
||||||
intval(ABOOK_FLAG_SELF)
|
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -347,6 +347,8 @@ function import_post(&$a) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proc_run('php', 'include/notifier.php', 'refresh_all', $channel['channel_id']);
|
||||||
|
|
||||||
// send out refresh requests
|
// send out refresh requests
|
||||||
|
|
||||||
notice( t('Import completed.') . EOL);
|
notice( t('Import completed.') . EOL);
|
||||||
|
Reference in New Issue
Block a user