aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-04 20:48:35 -0700
committerfriendica <info@friendica.com>2012-04-04 20:48:35 -0700
commit37801dd6ed60776fc128d44f0d63a57e1b5e37d0 (patch)
treebfb50008e04adc21c6ce417830871b191e69720e /include/diaspora.php
parentb45327b856a3ce116931c6b554e23fc1bef20b7c (diff)
downloadvolse-hubzilla-37801dd6ed60776fc128d44f0d63a57e1b5e37d0.tar.gz
volse-hubzilla-37801dd6ed60776fc128d44f0d63a57e1b5e37d0.tar.bz2
volse-hubzilla-37801dd6ed60776fc128d44f0d63a57e1b5e37d0.zip
also block outbound
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 37d5990ee..06df9c24a 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -2283,6 +2283,11 @@ function diaspora_send_mail($item,$owner,$contact) {
function diaspora_transmit($owner,$contact,$slap,$public_batch) {
+ $enabled = intval(get_config('system','diaspora_enabled'));
+ if(! $enabled) {
+ return 200;
+ }
+
$a = get_app();
$logid = random_string(4);
$dest_url = (($public_batch) ? $contact['batch'] : $contact['notify']);