aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-21 15:44:26 -0800
committerFriendika <info@friendika.com>2010-11-21 15:44:26 -0800
commit6a3815e751b013d2fba1e1de6df89566f971e39c (patch)
tree81253b11f9b13f1b0cf173f44e6fc3fe906d3f14
parentf1630780e9d81a3e7cd41d76d7a6fa7b4c125edb (diff)
downloadvolse-hubzilla-6a3815e751b013d2fba1e1de6df89566f971e39c.tar.gz
volse-hubzilla-6a3815e751b013d2fba1e1de6df89566f971e39c.tar.bz2
volse-hubzilla-6a3815e751b013d2fba1e1de6df89566f971e39c.zip
don't invoke slap if there's no endpoint configured
-rw-r--r--mod/follow.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/follow.php b/mod/follow.php
index dfc394502..d5651ea39 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -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