]> git.mxchange.org Git - friendica.git/commitdiff
also block outbound
authorfriendica <info@friendica.com>
Thu, 5 Apr 2012 03:48:35 +0000 (20:48 -0700)
committerfriendica <info@friendica.com>
Thu, 5 Apr 2012 03:48:35 +0000 (20:48 -0700)
include/diaspora.php

index 37d5990eeea6b51a8624e10bbf8dc804137f9c08..06df9c24a4513d2ddc27cd5de1c13a8e54a67db6 100755 (executable)
@@ -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']);