]> git.mxchange.org Git - friendica.git/commitdiff
don't invoke slap if there's no endpoint configured
authorFriendika <info@friendika.com>
Sun, 21 Nov 2010 23:44:26 +0000 (15:44 -0800)
committerFriendika <info@friendika.com>
Sun, 21 Nov 2010 23:44:26 +0000 (15:44 -0800)
mod/follow.php

index dfc3945028290399738ce6eb32482f941a69282c..d5651ea39e79a397f9cf42eae9c98979d0291ad2 100644 (file)
@@ -181,8 +181,11 @@ function follow_post(&$a) {
                        intval(local_user())
        );
 
-       require_once('include/salmon.php');
-       slapper($r[0],$contact['notify'],$slap);
+
+       if((x($contact,'notify')) && (strlen($contact['notify']))) {
+               require_once('include/salmon.php');
+               slapper($r[0],$contact['notify'],$slap);
+       }
 
        goaway($_SESSION['return_url']);
        // NOTREACHED