aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-16 05:14:06 -0700
committerfriendica <info@friendica.com>2014-09-16 05:14:06 -0700
commit6a82ccecd08e84dff0f4e3198693823d7019c6d2 (patch)
treedbe6e739fe91e999787c408a171e512f2905e4d7
parenta1b66f56f0981a0853f180a458c401a80dda28ce (diff)
downloadvolse-hubzilla-6a82ccecd08e84dff0f4e3198693823d7019c6d2.tar.gz
volse-hubzilla-6a82ccecd08e84dff0f4e3198693823d7019c6d2.tar.bz2
volse-hubzilla-6a82ccecd08e84dff0f4e3198693823d7019c6d2.zip
when importing channels - use the new location notification message to tell your original site where it sits in terms of primary.
-rw-r--r--mod/import.php13
1 files changed, 4 insertions, 9 deletions
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' );
-
}