Publiv forum posts aren't transmitted via the connectors anymore
[friendica-addons.git] / diaspora / diaspora.php
index 64388bbd225eba760ef1673c1e5cf79852d0a6f0..04ed24ca84b42d12d5f3dfed190a3e3fecaacdf3 100755 (executable)
@@ -284,6 +284,13 @@ function diaspora_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;
+       }
+
        logger('diaspora_send: prepare posting', LOGGER_DEBUG);
 
        $handle = PConfig::get($b['uid'],'diaspora','handle');