diff options
author | Friendika <info@friendika.com> | 2010-11-21 15:44:26 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-21 15:44:26 -0800 |
commit | 6a3815e751b013d2fba1e1de6df89566f971e39c (patch) | |
tree | 81253b11f9b13f1b0cf173f44e6fc3fe906d3f14 | |
parent | f1630780e9d81a3e7cd41d76d7a6fa7b4c125edb (diff) | |
download | volse-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.php | 7 |
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 |