Browse Source

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

pull/1/head
Friendika 11 years ago
parent
commit
6a3815e751
  1. 7
      mod/follow.php

7
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

Loading…
Cancel
Save