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
1 changed files with 5 additions and 2 deletions

View File

@ -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