don't invoke slap if there's no endpoint configured

This commit is contained in:
Friendika 2010-11-21 15:44:26 -08:00
parent f1630780e9
commit 6a3815e751

View File

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