fix profile update propagation

This commit is contained in:
friendica
2013-06-18 02:51:43 -07:00
parent c0cc494bf3
commit 6220ab4b54
2 changed files with 13 additions and 9 deletions

View File

@@ -19,11 +19,6 @@ function directory_run($argv, $argc){
if($dirmode === false)
$dirmode = DIRECTORY_MODE_NORMAL;
if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) {
syncdirs($argv[1]);
return;
}
$x = q("select * from channel where channel_id = %d limit 1",
intval($argv[1])
);
@@ -32,6 +27,15 @@ function directory_run($argv, $argc){
$channel = $x[0];
if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) {
syncdirs($argv[1]);
// Now update all the connections
proc_run('php','include/notifier.php','refresh_all',$channel['channel_id']);
return;
}
$directory = find_upstream_directory($dirmode);
if($directory) {
@@ -49,7 +53,7 @@ function directory_run($argv, $argc){
// Now update all the connections
proc_run('php','notifier','refresh_all',$channel['channel_id']);
proc_run('php','include/notifier.php','refresh_all',$channel['channel_id']);
}