X-Git-Url: https://git.mxchange.org/?p=friendica-addons.git;a=blobdiff_plain;f=diaspora%2Fdiaspora.php;h=04ed24ca84b42d12d5f3dfed190a3e3fecaacdf3;hp=64388bbd225eba760ef1673c1e5cf79852d0a6f0;hb=b3d73b125526002e147302cfd05279d33bd8db73;hpb=800d15e40a4497299784e9fe8802fc5dffdcb751 diff --git a/diaspora/diaspora.php b/diaspora/diaspora.php index 64388bbd..04ed24ca 100755 --- a/diaspora/diaspora.php +++ b/diaspora/diaspora.php @@ -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');