aboutsummaryrefslogtreecommitdiffstats
path: root/mod/pubsub.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-08-30 11:00:23 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-08-30 11:00:23 +0200
commitd0926240a87327a7e38b822802ac192336f68791 (patch)
tree49c5d2eec9954efbe313e7130e1ce970a56c60e9 /mod/pubsub.php
parent97806544bcd7ee3831ffc515062afe0812828b76 (diff)
parent0f1bc6e9571e367b37246e43ce08921bf317fa7c (diff)
downloadvolse-hubzilla-d0926240a87327a7e38b822802ac192336f68791.tar.gz
volse-hubzilla-d0926240a87327a7e38b822802ac192336f68791.tar.bz2
volse-hubzilla-d0926240a87327a7e38b822802ac192336f68791.zip
Merge remote-tracking branch 'friendika/master' into newui
Diffstat (limited to 'mod/pubsub.php')
-rw-r--r--mod/pubsub.php6
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');