]> git.mxchange.org Git - friendica.git/commitdiff
don't accept pubsub from diaspora
authorFriendika <info@friendika.com>
Wed, 24 Aug 2011 08:41:27 +0000 (01:41 -0700)
committerFriendika <info@friendika.com>
Wed, 24 Aug 2011 08:41:27 +0000 (01:41 -0700)
mod/pubsub.php

index d6e3d378fcbdb7c7af7cb324b7e301e026e8e1c9..4dff5d531ab27a9450ebe2b37c6c37a7645ad0e1 100644 (file)
@@ -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');