Publiv forum posts aren't transmitted via the connectors anymore
[friendica-addons.git] / pumpio / pumpio.php
index 3d3f5bf4d7dfcc3fbdccbb9edcfe8960c656b34b..358a2257163e92a5fd0a07ce54644117016d9a62 100644 (file)
@@ -415,6 +415,13 @@ function pumpio_send(&$a,&$b) {
 
                if (!count($receiver) && ($b['private'] || !strstr($b['postopts'],'pumpio')))
                        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($b['verb'] == ACTIVITY_LIKE) {