From 6a3815e751b013d2fba1e1de6df89566f971e39c Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 21 Nov 2010 15:44:26 -0800 Subject: don't invoke slap if there's no endpoint configured --- mod/follow.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/follow.php') 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 -- cgit v1.2.3