aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-26 20:46:42 -0800
committerfriendica <info@friendica.com>2012-01-26 20:46:42 -0800
commit8fe51682590c1f9badf2efc6b4f7fc1ddcc2c31e (patch)
treefd358116ff20ef4c6f44e02189c550672ac431d7 /include
parentf1f480c2bfe338fbf3de566f131855683631257d (diff)
downloadvolse-hubzilla-8fe51682590c1f9badf2efc6b4f7fc1ddcc2c31e.tar.gz
volse-hubzilla-8fe51682590c1f9badf2efc6b4f7fc1ddcc2c31e.tar.bz2
volse-hubzilla-8fe51682590c1f9badf2efc6b4f7fc1ddcc2c31e.zip
restore diaspora test mode
Diffstat (limited to 'include')
-rwxr-xr-xinclude/diaspora.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 05d17dd9c..cded389c3 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -2193,7 +2193,12 @@ function diaspora_transmit($owner,$contact,$slap,$public_batch) {
logger('diaspora_transmit: ' . $logid . ' ' . $dest_url);
- post_url($dest_url . '/', $slap);
+ if(! intval(get_config('system','diaspora_test')))
+ post_url($dest_url . '/', $slap);
+ else {
+ logger('diaspora_transmit: test_mode');
+ return 200;
+ }
$return_code = $a->get_curl_code();
logger('diaspora_transmit: ' . $logid . ' returns: ' . $return_code);