Publiv forum posts aren't transmitted via the connectors anymore
[friendica-addons.git] / buffer / buffer.php
index f5f88e10658f27fd0de508e30df93cac24a94f89..131574819cdf74d2a3e20d442cf9ec31a8fc98b0 100644 (file)
@@ -247,6 +247,13 @@ function buffer_send(&$a,&$b) {
        if($b['parent'] != $b['id'])
                return;
 
+       // Dont't post if the post doesn't belong to us.
+       // This is a check for forum postings
+       $self = dba::select('contact', array('id'), array('uid' => $b['uid'], 'self' => true), array('limit' => 1));
+       if ($b['contact-id'] != $self['id']) {
+               return;
+       }
+
        // if post comes from buffer don't send it back
        //if($b['app'] == "Buffer")
        //      return;