From 8fe51682590c1f9badf2efc6b4f7fc1ddcc2c31e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 26 Jan 2012 20:46:42 -0800 Subject: [PATCH] restore diaspora test mode --- include/diaspora.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/diaspora.php b/include/diaspora.php index 05d17dd9c4..cded389c38 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); -- 2.39.5