From 6a82ccecd08e84dff0f4e3198693823d7019c6d2 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 16 Sep 2014 05:14:06 -0700 Subject: when importing channels - use the new location notification message to tell your original site where it sits in terms of primary. --- mod/import.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'mod') diff --git a/mod/import.php b/mod/import.php index 0663a8b57..2fbb71fc4 100644 --- a/mod/import.php +++ b/mod/import.php @@ -379,21 +379,17 @@ function import_post(&$a) { //FIXME just a note here for when folks want to import content - be very careful to unset ITEM_ORIGIN on all imported content. Or you could end up with a nasty routing loop when somebody tries to reply to one of those posts. - - - // FIXME - ensure we have a self entry if somebody is trying to pull a fast one - if($seize) { - // notify old server that it is no longer primary. - - } + // send out refresh requests + // notify old server that it may no longer be primary. + + proc_run('php','include/notifier.php','location',$channel['channel_id']); // This will indirectly perform a refresh_all *and* update the directory proc_run('php', 'include/directory.php', $channel['channel_id']); - // send out refresh requests notice( t('Import completed.') . EOL); @@ -401,7 +397,6 @@ function import_post(&$a) { goaway(z_root() . '/network' ); - } -- cgit v1.2.3