aboutsummaryrefslogtreecommitdiffstats
path: root/include/directory.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-19 17:42:18 -0800
committerfriendica <info@friendica.com>2015-02-19 17:42:18 -0800
commit8c71e0e86184b844a69bfeabefdbb6ea50a849c9 (patch)
tree58cd25fc7d6343b94570eb309b5bf05b5e57bc19 /include/directory.php
parent8db367754621c7ee81c3157785a914cf8627d7b2 (diff)
downloadvolse-hubzilla-8c71e0e86184b844a69bfeabefdbb6ea50a849c9.tar.gz
volse-hubzilla-8c71e0e86184b844a69bfeabefdbb6ea50a849c9.tar.bz2
volse-hubzilla-8c71e0e86184b844a69bfeabefdbb6ea50a849c9.zip
directory interface cleanup and documentation so that debugging realms won't be stabbing in the dark.
Diffstat (limited to 'include/directory.php')
-rw-r--r--include/directory.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/directory.php b/include/directory.php
index a7324a99a..801d4ec8e 100644
--- a/include/directory.php
+++ b/include/directory.php
@@ -38,7 +38,9 @@ function directory_run($argv, $argc){
$channel = $x[0];
- if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) {
+ if($dirmode != DIRECTORY_MODE_NORMAL) {
+
+ // this is an in-memory update and we don't need to send a network packet.
local_dir_update($argv[1],$force);
@@ -54,6 +56,8 @@ function directory_run($argv, $argc){
return;
}
+ // otherwise send the changes upstream
+
$directory = find_upstream_directory($dirmode);
$url = $directory['url'] . '/post';