diff options
author | Friendika <info@friendika.com> | 2011-08-24 01:41:27 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-24 01:41:27 -0700 |
commit | 0883a614a288a85b973174a03c9498289e6383dc (patch) | |
tree | 5168405b5aae40a800d5b024a7669cfc85152854 /mod/pubsub.php | |
parent | 0e1f868237d568ca7f4a0cb9f8216776fcb4c787 (diff) | |
download | volse-hubzilla-0883a614a288a85b973174a03c9498289e6383dc.tar.gz volse-hubzilla-0883a614a288a85b973174a03c9498289e6383dc.tar.bz2 volse-hubzilla-0883a614a288a85b973174a03c9498289e6383dc.zip |
don't accept pubsub from diaspora
Diffstat (limited to 'mod/pubsub.php')
-rw-r--r-- | mod/pubsub.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/pubsub.php b/mod/pubsub.php index d6e3d378f..4dff5d531 100644 --- a/mod/pubsub.php +++ b/mod/pubsub.php @@ -122,6 +122,12 @@ function pubsub_post(&$a) { $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 = ''; require_once('include/items.php'); |