don't accept pubsub from diaspora
This commit is contained in:
parent
0e1f868237
commit
0883a614a2
|
@ -122,6 +122,12 @@ function pubsub_post(&$a) {
|
||||||
|
|
||||||
$contact = $r[0];
|
$contact = $r[0];
|
||||||
|
|
||||||
|
// we have no way to match Diaspora guid's with atom post id's and could get duplicates.
|
||||||
|
// we'll assume that direct delivery is robust (and this is a bad assumption, but the duplicates are messy).
|
||||||
|
|
||||||
|
if($r[0]['network'] === NETWORK_DIASPORA)
|
||||||
|
hub_post_return();
|
||||||
|
|
||||||
$feedhub = '';
|
$feedhub = '';
|
||||||
|
|
||||||
require_once('include/items.php');
|
require_once('include/items.php');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user