From: Friendika Date: Sun, 21 Nov 2010 23:44:26 +0000 (-0800) Subject: don't invoke slap if there's no endpoint configured X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6a3815e751b013d2fba1e1de6df89566f971e39c;p=friendica.git don't invoke slap if there's no endpoint configured --- diff --git a/mod/follow.php b/mod/follow.php index dfc3945028..d5651ea39e 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