From a09829a1ee62ec33904348979c5d5fbc6eb1bd6c Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 8 Sep 2013 21:05:39 -0700 Subject: perform a refresh_all when an import has completed so that all your connections get a fresh update. --- include/notifier.php | 5 ++--- mod/import.php | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/notifier.php b/include/notifier.php index 5dcd7b58c..e813f7951 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -208,9 +208,8 @@ function notifier_run($argv, $argc){ $channel = $s[0]; $uid = $item_id; $recipients = array(); - $r = q("select * from abook where abook_channel = %d and not (abook_flags & %d)", - intval($item_id), - intval(ABOOK_FLAG_SELF) + $r = q("select abook_xchan from abook where abook_channel = %d", + intval($item_id) ); if($r) { foreach($r as $rr) { diff --git a/mod/import.php b/mod/import.php index 08311013a..a63ccb875 100644 --- a/mod/import.php +++ b/mod/import.php @@ -347,6 +347,8 @@ function import_post(&$a) { } + proc_run('php', 'include/notifier.php', 'refresh_all', $channel['channel_id']); + // send out refresh requests notice( t('Import completed.') . EOL); -- cgit v1.2.3