don't invoke slap if there's no endpoint configured
This commit is contained in:
parent
f1630780e9
commit
6a3815e751
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue