]> git.mxchange.org Git - friendica-addons.git/blobdiff - wppost/wppost.php
Publiv forum posts aren't transmitted via the connectors anymore
[friendica-addons.git] / wppost / wppost.php
index f148310187c52aebab76d2493b460ba48a8dc5b7..ea26ae45340a7070de9e0d4fdb0bf772fecd96fb 100755 (executable)
@@ -200,6 +200,12 @@ function wppost_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;
+       }
 
        $wp_username = xmlify(PConfig::get($b['uid'],'wppost','wp_username'));
        $wp_password = xmlify(PConfig::get($b['uid'],'wppost','wp_password'));